| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2.0491 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | #[Override] |
|
| 29 | public function sendNotification(string $senderName, string $message, UserInterface $user): void |
||
| 30 | { |
||
| 31 | 1 | $mail = $this->mailFactory->createStuMail() |
|
| 32 | 1 | ->withDefaultSender() |
|
| 33 | 1 | ->addTo($user->getEmail()) |
|
| 34 | 1 | ->setSubject(sprintf( |
|
| 35 | 1 | 'Neue Privatnachricht von Spieler %s', |
|
| 36 | 1 | $this->bbcodeParser->parse($senderName)->getAsText() |
|
| 37 | 1 | )) |
|
| 38 | 1 | ->setBody($message); |
|
| 39 | |||
| 40 | try { |
||
| 41 | 1 | $mail->send(); |
|
| 42 | } catch (RuntimeException $e) { |
||
| 43 | $this->loggerUtil->init("mail", LoggerEnum::LEVEL_ERROR); |
||
| 44 | $this->loggerUtil->log($e->getMessage()); |
||
| 45 | } |
||
| 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