| Conditions | 4 |
| Paths | 5 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | private function processShip(ShipInterface $ship): void |
||
| 38 | { |
||
| 39 | $wrapper = $this->shipWrapperFactory->wrapShip($ship); |
||
| 40 | $reactor = $wrapper->getReactorWrapper(); |
||
| 41 | if ($reactor === null) { |
||
| 42 | return; |
||
| 43 | } |
||
| 44 | |||
| 45 | $epsSystem = $wrapper->getEpsSystemData(); |
||
| 46 | $warpdrive = $wrapper->getWarpDriveSystemData(); |
||
| 47 | |||
| 48 | //load EPS |
||
| 49 | if ($epsSystem !== null) { |
||
| 50 | $epsSystem->setEps($epsSystem->getEps() + $reactor->getEffectiveEpsProduction())->update(); |
||
| 51 | } |
||
| 52 | |||
| 53 | //load warpdrive |
||
| 54 | if ($warpdrive !== null) { |
||
| 55 | $warpdrive->setWarpDrive($warpdrive->getWarpDrive() + $reactor->getEffectiveWarpDriveProduction())->update(); |
||
| 56 | } |
||
| 59 |
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