Conditions | 3 |
Paths | 3 |
Total Lines | 27 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
19 | #[Override] |
||
20 | public function work(): void |
||
21 | { |
||
22 | $result = $this->colonyTerraformingRepository->getFinishedJobs(); |
||
23 | foreach ($result as $colonyTerraforming) { |
||
24 | $colonyField = $colonyTerraforming->getField(); |
||
25 | |||
26 | $host = $colonyField->getHost(); |
||
27 | if ($host instanceof ColonySandboxInterface) { |
||
28 | continue; |
||
29 | } |
||
30 | |||
31 | $terraforming = $colonyTerraforming->getTerraforming(); |
||
32 | $colonyField->setFieldType($terraforming->getToFieldTypeId()); |
||
33 | $colonyField->setTerraforming(null); |
||
34 | |||
35 | $this->planetFieldRepository->save($colonyField); |
||
36 | |||
37 | $this->colonyTerraformingRepository->delete($colonyTerraforming); |
||
38 | $txt = "Kolonie " . $host->getName() . ": " . $terraforming->getDescription() . " auf Feld " . $colonyField->getFieldId() . " abgeschlossen"; |
||
39 | |||
40 | $this->privateMessageSender->send( |
||
41 | UserEnum::USER_NOONE, |
||
42 | $host->getUserId(), |
||
43 | $txt, |
||
44 | PrivateMessageFolderTypeEnum::SPECIAL_COLONY, |
||
45 | $host |
||
46 | ); |
||
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