| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 9 | #[Override] |
|
| 12 | public function initMembers(): Collection |
||
| 13 | { |
||
| 14 | 9 | $fleetWrapper = $this->leader->getFleetWrapper(); |
|
| 15 | |||
| 16 | 9 | $result = $fleetWrapper === null ? $this->createSingleton($this->leader) : $fleetWrapper->getShipWrappers(); |
|
| 17 | |||
| 18 | // filter warped and cloaked |
||
| 19 | 9 | return $result |
|
| 20 | 9 | ->filter(fn(SpacecraftWrapperInterface $wrapper): bool => |
|
| 21 | 9 | !$wrapper->get()->isCloaked() && !$wrapper->get()->isWarped()); |
|
| 22 | } |
||
| 24 |
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