| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | protected function mailMessageBuilder($notifiable): MailMessageBuilder |
|
|
|
|||
| 32 | { |
||
| 33 | 1 | $className = config('periodic-notice.defaults.mail_builder', MailMessageBuilder::class); |
|
| 34 | 1 | if (!is_a($className, MailMessageBuilder::class, true)) { |
|
| 35 | throw new \Exception('Wrong mail builder class'); |
||
| 36 | } |
||
| 37 | |||
| 38 | 1 | return $className::make(); |
|
| 39 | } |
||
| 48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.