| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | #[Override] |
||
| 18 | public function damageCapturedShip( |
||
| 19 | ShipInterface $ship, |
||
| 20 | ShipWrapperInterface $wrapper, |
||
| 21 | InformationInterface $informations |
||
| 22 | ): void { |
||
| 23 | |||
| 24 | $ship = $wrapper->get(); |
||
| 25 | |||
| 26 | $informations->addInformation(sprintf( |
||
| 27 | "Das Energienetz um die %s in Sektor %s ist implodiert", |
||
| 28 | $ship->getName(), |
||
| 29 | $ship->getSectorString() |
||
| 30 | )); |
||
| 31 | |||
| 32 | $damage_wrapper = new DamageWrapper( |
||
| 33 | (int)ceil(random_int(65, 85) * $wrapper->get()->getMaxHull() / 100) |
||
| 34 | ); |
||
| 35 | $damage_wrapper->setCrit(random_int(0, 3) === 0); |
||
| 36 | $damage_wrapper->setShieldDamageFactor(100); |
||
| 37 | $damage_wrapper->setHullDamageFactor(100); |
||
| 38 | $damage_wrapper->setIsPhaserDamage(true); |
||
| 39 | |||
| 40 | $this->applyDamage->damage($damage_wrapper, $wrapper, $informations); |
||
| 41 | |||
| 42 | $this->checkForSpacecraftDestruction( |
||
| 43 | $ship, |
||
| 44 | $wrapper, |
||
| 45 | SpacecraftDestructionCauseEnum::THOLIAN_WEB_IMPLOSION, |
||
| 46 | $informations |
||
| 47 | ); |
||
| 50 |
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