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