| Conditions | 4 |
| Paths | 3 |
| Total Lines | 26 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 8 | #[Override] |
|
| 16 | public function distributeMessageCollection( |
||
| 17 | MessageCollectionInterface $messageCollection, |
||
| 18 | int $senderId = UserConstants::USER_NOONE, |
||
| 19 | PrivateMessageFolderTypeEnum $folderType = PrivateMessageFolderTypeEnum::SPECIAL_SYSTEM, |
||
| 20 | ?string $header = null, |
||
| 21 | bool $sendDumpToEveryone = false |
||
| 22 | ): void { |
||
| 23 | 8 | foreach ($messageCollection->getRecipientIds() as $recipientId) { |
|
| 24 | 6 | $informations = $messageCollection->getInformationDump($sendDumpToEveryone ? null : $recipientId); |
|
| 25 | |||
| 26 | 6 | if ($header !== null) { |
|
| 27 | 2 | $pm = sprintf( |
|
| 28 | 2 | "%s\n\n%s", |
|
| 29 | 2 | $header, |
|
| 30 | 2 | $informations->getInformationsAsString() |
|
| 31 | 2 | ); |
|
| 32 | } else { |
||
| 33 | 4 | $pm = $informations->getInformationsAsString(); |
|
| 34 | } |
||
| 35 | |||
| 36 | 6 | $this->privateMessageSender->send( |
|
| 37 | 6 | $senderId, |
|
| 38 | 6 | $recipientId, |
|
| 39 | 6 | $pm, |
|
| 40 | 6 | $folderType |
|
| 41 | 6 | ); |
|
| 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