| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | #[Override] |
||
| 18 | public function handleSpacecraftTick( |
||
| 19 | SpacecraftWrapperInterface $wrapper, |
||
| 20 | InformationInterface $information |
||
| 21 | ): void { |
||
| 22 | |||
| 23 | $spacecraft = $wrapper->get(); |
||
| 24 | $hasEnoughCrew = $spacecraft->hasEnoughCrew(); |
||
| 25 | |||
| 26 | // not enough crew |
||
| 27 | if (!$hasEnoughCrew) { |
||
| 28 | $information->addInformation('Zu wenig Crew an Bord, Schiff ist nicht voll funktionsfähig! Systeme werden deaktiviert!'); |
||
| 29 | |||
| 30 | //deactivate all systems except life support |
||
| 31 | foreach ($this->spacecraftSystemManager->getActiveSystems($spacecraft) as $system) { |
||
| 32 | if ($system->getSystemType() != SpacecraftSystemTypeEnum::LIFE_SUPPORT) { |
||
| 33 | $this->spacecraftSystemManager->deactivate($wrapper, $system->getSystemType(), true); |
||
| 34 | } |
||
| 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