Conditions | 3 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.7085 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 1 | #[Override] |
|
21 | public function handleSpacecraftTick( |
||
22 | SpacecraftWrapperInterface $wrapper, |
||
23 | InformationInterface $information |
||
24 | ): void { |
||
25 | |||
26 | 1 | $spacecraft = $wrapper->get(); |
|
27 | |||
28 | // leave spacecraft |
||
29 | if ( |
||
30 | 1 | $this->crewAssignmentRepository->getAmountBySpacecraft($spacecraft) > 0 |
|
31 | 1 | && !$spacecraft->isSystemHealthy(SpacecraftSystemTypeEnum::LIFE_SUPPORT) |
|
32 | ) { |
||
33 | $information->addInformation('Die Lebenserhaltung ist ausgefallen:'); |
||
34 | $information->addInformation($this->spacecraftLeaver->evacuate($wrapper)); |
||
35 | |||
36 | throw new SpacecraftTickFinishedException(); |
||
37 | } |
||
40 |
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