Conditions | 3 |
Paths | 3 |
Total Lines | 25 |
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->planetFieldRepository->getByConstructionFinish(time()); |
||
23 | foreach ($result as $field) { |
||
24 | $activationDetails = $this->buildingManager->finish($field, $field->getActivateAfterBuild()); |
||
25 | $host = $field->getHost(); |
||
26 | if ($host instanceof ColonySandboxInterface) { |
||
27 | continue; |
||
28 | } |
||
29 | |||
30 | $txt = sprintf( |
||
31 | "Kolonie %s: %s auf Feld %s fertiggestellt\n%s", |
||
32 | $host->getName(), |
||
33 | $field->getBuilding()->getName(), |
||
34 | $field->getFieldId(), |
||
35 | $activationDetails ?? '' |
||
36 | ); |
||
37 | |||
38 | $this->privateMessageSender->send( |
||
39 | UserEnum::USER_NOONE, |
||
40 | $host->getUserId(), |
||
41 | $txt, |
||
42 | PrivateMessageFolderTypeEnum::SPECIAL_COLONY, |
||
43 | $host |
||
44 | ); |
||
48 |
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