| Conditions | 3 |
| Paths | 3 |
| Total Lines | 25 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | #[\Override] |
||
| 17 | public function informUsersAboutTrojanHorse( |
||
| 18 | Spacecraft $incomingSpacecraft, |
||
| 19 | ?Spacecraft $tractoringSpacecraft, |
||
| 20 | Collection $users |
||
| 21 | ): void { |
||
| 22 | |||
| 23 | if ($tractoringSpacecraft === null) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | $txt = sprintf( |
||
| 28 | _('Die %s von Spieler %s ist in Sektor %s eingeflogen und hat dabei die %s von Spieler %s gezogen'), |
||
| 29 | $tractoringSpacecraft->getName(), |
||
| 30 | $tractoringSpacecraft->getUser()->getName(), |
||
| 31 | $tractoringSpacecraft->getSectorString(), |
||
| 32 | $incomingSpacecraft->getName(), |
||
| 33 | $incomingSpacecraft->getUser()->getName() |
||
| 34 | ); |
||
| 35 | |||
| 36 | foreach ($users as $user) { |
||
| 37 | $this->privateMessageSender->send( |
||
| 38 | UserConstants::USER_NOONE, |
||
| 39 | $user->getId(), |
||
| 40 | $txt |
||
| 41 | ); |
||
| 45 |
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