| Percentage | Lines | ||
|---|---|---|---|
| AclService |
|
100 % | 169 |
| AclServiceProvider |
|
100 % | 61 |
| Authorize |
|
100 % | 29 |
| Role |
|
100 % | 71 |
| PermissionRegistrar |
|
100 % | 90 |
| HasRole |
|
100 % | 122 |
| CRAP Score | Lines | ||
|---|---|---|---|
| AclService::getUserPermissions() | 8 | 21 | |
| AclService::hasPermission() | 6 | 28 | |
| PermissionRegistrar::getInstance() | 6 | 8 | |
| AclService::userHasRole() | 5 | 18 | |
| AclService::hasAnyPermission() | 3 | 11 | |
| AclService::hasAllPermissions() | 3 | 11 | |
| Authorize::handle() | 3 | 14 | |
| PermissionRegistrar::format() | 3 | 11 | |
| HasRole::getAccessLevels() | 3 | 11 | |
| helpers.php ➔ acl() | 2 | 9 | |