| Conditions | 4 |
| Paths | 4 |
| Total Lines | 26 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | #[Override] |
||
| 21 | public function work(): void |
||
| 22 | { |
||
| 23 | $queue = $this->colonyShipQueueRepository->getFinishedJobs(); |
||
| 24 | foreach ($queue as $obj) { |
||
| 25 | if ($obj->getMode() == 2) { |
||
| 26 | |||
| 27 | $colony = $obj->getColony(); |
||
| 28 | |||
| 29 | $newbuildplan = $obj->getShipBuildplan(); |
||
| 30 | $ship = $obj->getShip(); |
||
| 31 | |||
| 32 | if ($ship == null) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->shipRetrofit->updateBy( |
||
| 37 | $ship, |
||
| 38 | $newbuildplan, |
||
| 39 | $colony |
||
| 40 | ); |
||
| 41 | $this->colonyShipQueueRepository->delete($obj); |
||
| 42 | |||
| 43 | $ship->setState(ShipStateEnum::SHIP_STATE_NONE); |
||
| 44 | |||
| 45 | $this->shipRepository->save($ship); |
||
| 46 | } |
||
| 49 | } |
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