Code Duplication    Length = 14-14 lines in 2 locations

src/helpers.php 2 locations

@@ 17-30 (lines=14) @@
14
    }
15
}
16
17
if (!function_exists('may')) {
18
    /**
19
     * @return \Napp\Core\Acl\AclService
20
     */
21
    function may()
22
    {
23
        $arguments = func_get_args();
24
        if (empty($arguments)) {
25
            return app(\Napp\Core\Acl\AclService::class);
26
        }
27
28
        return app(\Napp\Core\Acl\AclService::class)->may($arguments[0]);
29
    }
30
}
31
32
if (!function_exists('maynot')) {
33
    /**
@@ 2-15 (lines=14) @@
1
<?php
2
if (!function_exists('acl')) {
3
    /**
4
     * @return \Napp\Core\Acl\AclService
5
     */
6
    function acl()
7
    {
8
        $arguments = func_get_args();
9
        if (empty($arguments)) {
10
            return app(\Napp\Core\Acl\AclService::class);
11
        }
12
13
        return app(\Napp\Core\Acl\AclService::class)->may($arguments[0]);
14
    }
15
}
16
17
if (!function_exists('may')) {
18
    /**