| Total Complexity | 13 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | trait AclListQueryTrait { |
||
| 12 | |||
| 13 | abstract public function getRoleByName(string $name); |
||
| 14 | |||
| 15 | abstract public function getResourceByName(string $name); |
||
| 16 | |||
| 17 | abstract public function getPermissionByName(string $name); |
||
| 18 | |||
| 19 | public function getAclsWithRole(string $role) { |
||
| 20 | $result = []; |
||
| 21 | foreach ($this->acls as $acl) { |
||
| 22 | if ($acl->getRole()->getName() === $role) { |
||
| 23 | $result[] = $acl; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | return $result; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getAclsWithResource(string $resource) { |
||
| 30 | $result = []; |
||
| 31 | foreach ($this->acls as $acl) { |
||
| 32 | if ($acl->getResource()->getName() === $resource) { |
||
| 33 | $result[] = $acl; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | return $result; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getAclsWithPermission(string $permission) { |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * @param AbstractAclPart $part |
||
| 52 | * @param string $providerClass |
||
| 53 | * @return boolean |
||
| 54 | */ |
||
| 55 | public function existPartIn(AbstractAclPart $part, string $providerClass) { |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * |
||
| 65 | * @param AclElement $elm |
||
| 66 | * @param string $providerClass |
||
| 67 | * @return boolean |
||
| 68 | */ |
||
| 69 | public function existAclIn(AclElement $elm, string $providerClass) { |
||
| 78 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths