| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 2 | #[Override] |
|
| 13 | public function initMembers(): Collection |
||
| 14 | { |
||
| 15 | 2 | $fleetWrapper = $this->leader->getFleetWrapper(); |
|
| 16 | |||
| 17 | 2 | if ($fleetWrapper === null) { |
|
| 18 | 1 | return $this->createSingleton($this->leader); |
|
| 19 | } else { |
||
| 20 | |||
| 21 | // only uncloaked ships enter fight |
||
| 22 | 1 | return $fleetWrapper->getShipWrappers() |
|
| 23 | 1 | ->filter(fn(SpacecraftWrapperInterface $wrapper): bool => !$wrapper->get()->isCloaked()); |
|
| 24 | } |
||
| 39 |
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