Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | trait AclManagerTester { |
||
13 | |||
14 | /** |
||
15 | * Checks if ACL cache is updated. |
||
16 | * Do not use directly from this class: use checkCache instead. |
||
17 | * @return bool |
||
18 | */ |
||
19 | public static function cacheUpdated(): bool { |
||
20 | return self::$aclList->cacheUpdated(); |
||
|
|||
21 | } |
||
22 | |||
23 | /** |
||
24 | * |
||
25 | * @param AbstractAclPart $part |
||
26 | * @param string $providerClass |
||
27 | * @return boolean |
||
28 | */ |
||
29 | 2 | public static function existPartIn(AbstractAclPart $part, string $providerClass):bool { |
|
30 | 2 | return self::$aclList->existPartIn($part, $providerClass); |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @param AclElement $elm |
||
36 | * @param string $providerClass |
||
37 | * @return boolean |
||
38 | */ |
||
39 | 2 | public static function existAclIn(AclElement $elm, string $providerClass):bool { |
|
40 | 2 | return self::$aclList->existAclIn($elm, $providerClass); |
|
41 | } |
||
42 | |||
43 | 1 | public static function roleExists(string $roleName): bool { |
|
44 | 1 | return self::$aclList->roleExists($roleName); |
|
45 | } |
||
46 | |||
47 | public static function resourceExists(string $resourceName): bool { |
||
49 | } |
||
50 | |||
51 | public static function permissionExists(string $permissionName): bool { |
||
53 | } |
||
54 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.