| Conditions | 5 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 7 | #[Override] |
|
| 45 | public function isFeatureGranted(int $userId, AccessGrantedFeatureEnum $feature, GameControllerInterface $game): bool |
||
| 46 | { |
||
| 47 | 7 | if ($game->isAdmin()) { |
|
| 48 | 1 | return true; |
|
| 49 | } |
||
| 50 | |||
| 51 | 6 | $grantedFeatures = $this->stuConfig->getGameSettings()->getGrantedFeatures(); |
|
| 52 | 6 | foreach ($grantedFeatures as $entry) { |
|
| 53 | if ( |
||
| 54 | 5 | $entry['feature'] === $feature->name |
|
| 55 | 5 | && in_array($userId, $entry['userIds']) |
|
| 56 | ) { |
||
| 57 | 1 | return true; |
|
| 58 | } |
||
| 59 | } |
||
| 60 | |||
| 61 | 5 | return false; |
|
| 62 | } |
||
| 64 |
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