| Conditions | 4 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | #[Override] |
||
| 17 | public function handleSpacecraftDestruction( |
||
| 18 | ?SpacecraftDestroyerInterface $destroyer, |
||
| 19 | SpacecraftWrapperInterface $destroyedSpacecraftWrapper, |
||
| 20 | SpacecraftDestructionCauseEnum $cause, |
||
| 21 | InformationInterface $informations |
||
| 22 | ): void { |
||
| 23 | |||
| 24 | if ($destroyer === null) { |
||
| 25 | return; |
||
| 26 | } |
||
| 27 | |||
| 28 | $destroyedPrestige = $destroyedSpacecraftWrapper->get()->getRump()->getPrestige(); |
||
| 29 | if ( |
||
| 30 | $destroyedPrestige > 0 |
||
| 31 | && $destroyer instanceof SpacecraftAttacker |
||
| 32 | ) { |
||
| 33 | |||
| 34 | CrewEnhancemenProxy::addExpertise( |
||
| 35 | $destroyer->get(), |
||
| 36 | SkillEnhancementEnum::SPACECRAFT_DESTRUCTION, |
||
| 37 | min(200, (int)ceil($destroyedPrestige * 100 / abs($destroyer->get()->getRump()->getPrestige()))) |
||
| 38 | ); |
||
| 42 |
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