Conditions | 6 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
20 | 8 | #[Override] |
|
21 | public function getAlertedShipsOnLocation( |
||
22 | LocationInterface $location, |
||
23 | UserInterface $user |
||
24 | ): Collection { |
||
25 | 8 | return $location->getSpacecraftsWithoutVacation() |
|
26 | 8 | ->filter( |
|
27 | 8 | fn(SpacecraftInterface $spacecraft): bool => |
|
28 | 7 | $spacecraft->getUser() !== $user |
|
29 | 7 | && ($spacecraft->getFleet() === null || !$spacecraft instanceof ShipInterface || $spacecraft->isFleetLeader()) |
|
30 | 7 | && !$spacecraft->isWarped() |
|
31 | 7 | && !$spacecraft->isCloaked() |
|
32 | 8 | ) |
|
33 | 8 | ->map(fn(SpacecraftInterface $spacecraft): SpacecraftWrapperInterface => $this->spacecraftWrapperFactory->wrapSpacecraft($spacecraft)) |
|
34 | 8 | ->filter(fn(SpacecraftWrapperInterface $wrapper): bool => !$wrapper->isUnalerted()); |
|
35 | } |
||
37 |
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