| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3.2098 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | 4 | protected function hasExplored(UserInterface $user, LayerInterface $layer): bool |
|
| 15 | { |
||
| 16 | 4 | if (!$this->hasSeen($user, $layer)) { |
|
| 17 | return false; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** @var null|UserLayerInterface */ |
||
| 21 | 4 | $userLayer = $user->getUserLayers()->get($layer->getId()); |
|
| 22 | |||
| 23 | 4 | return $userLayer === null |
|
| 24 | ? false |
||
| 25 | 4 | : $userLayer->getMappingType() === MapEnum::MAPTYPE_LAYER_EXPLORED; |
|
| 26 | } |
||
| 33 |
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