Total Complexity | 6 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class FormEntryReceived extends Notification implements ShouldQueue |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | public FormContent $content; |
||
16 | |||
17 | public ?string $subject = null; |
||
18 | |||
19 | 9 | public function __construct(FormContent $content) |
|
20 | { |
||
21 | 9 | $this->content = $content; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * Get the notification's delivery channels. |
||
26 | * |
||
27 | * @param mixed $notifiable |
||
28 | * |
||
29 | * @return array |
||
30 | */ |
||
31 | 8 | public function via($notifiable = null) |
|
|
|||
32 | { |
||
33 | 8 | return ['mail']; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the mail representation of the notification. |
||
38 | * |
||
39 | * @param mixed $notifiable |
||
40 | * |
||
41 | * @return MailMessage |
||
42 | */ |
||
43 | 1 | public function toMail($notifiable) |
|
55 | } |
||
56 | |||
57 | 1 | protected function getSubject(): string |
|
64 | } |
||
65 | } |
||
66 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.