| Conditions | 4 |
| Paths | 4 |
| Total Lines | 30 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | #[Override] |
||
| 19 | public function work(): void |
||
| 20 | { |
||
| 21 | $queue = $this->colonyShipQueueRepository->getFinishedJobs(); |
||
| 22 | foreach ($queue as $obj) { |
||
| 23 | if ($obj->getMode() == 2) { |
||
| 24 | |||
| 25 | $colony = $obj->getColony(); |
||
| 26 | |||
| 27 | $newbuildplan = $obj->getShipBuildplan(); |
||
| 28 | $ship = $obj->getShip(); |
||
| 29 | |||
| 30 | if ($ship == null) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->shipRetrofit->updateBy( |
||
| 35 | $ship, |
||
| 36 | $newbuildplan |
||
| 37 | ); |
||
| 38 | $this->colonyShipQueueRepository->delete($obj); |
||
| 39 | |||
| 40 | |||
| 41 | $txt = _("Auf der Kolonie " . $colony->getName() . " wurde die " . $ship->getName() . " umgerüstet"); |
||
| 42 | |||
| 43 | $this->privateMessageSender->send( |
||
| 44 | UserEnum::USER_NOONE, |
||
| 45 | $colony->getUserId(), |
||
| 46 | $txt, |
||
| 47 | PrivateMessageFolderTypeEnum::SPECIAL_COLONY |
||
| 48 | ); |
||
| 52 | } |
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