| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 1 | public function toMail($notifiable) |
|
| 44 | { |
||
| 45 | /** @var MailMessage $message */ |
||
| 46 | 1 | $message = (new MailMessage) |
|
| 47 | 1 | ->subject($this->getSubject()) |
|
| 48 | 1 | ->greeting(trans('forms-entries::notification.form_content_greeting')) |
|
| 49 | 1 | ->line(trans('forms-entries::notification.form_content_header')); |
|
| 50 | 1 | foreach (explode("\n", $this->content->stringify()) as $line) { |
|
| 51 | 1 | $message->line($line); |
|
| 52 | } |
||
| 53 | |||
| 54 | 1 | return $message; |
|
| 55 | } |
||
| 66 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.