Total Complexity | 4 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ExpiringEventMailNotification extends Notification |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | protected array $senderData; |
||
16 | protected Event $event; |
||
17 | |||
18 | /** |
||
19 | * Create a new notification instance. |
||
20 | * |
||
21 | * @param array $senderData |
||
22 | * @param \App\Models\Event $event |
||
23 | */ |
||
24 | public function __construct(array $senderData, Event $event) |
||
25 | { |
||
26 | $this->senderData = $senderData; |
||
27 | $this->event = $event; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Get the notification's delivery channels. |
||
32 | * |
||
33 | * @param mixed $notifiable |
||
34 | * @return array |
||
35 | */ |
||
36 | public function via($notifiable) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the mail representation of the notification. |
||
43 | * |
||
44 | * @param mixed $notifiable |
||
45 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
46 | */ |
||
47 | public function toMail($notifiable): MailMessage |
||
48 | { |
||
49 | return (new MailMessage()) |
||
50 | ->subject('Expiring Event - CI Global Calendar') |
||
51 | ->markdown('mail.expiringEvent', [ |
||
52 | 'event' => $this->event, |
||
53 | 'senderData' => $this->senderData |
||
54 | ]); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Get the array representation of the notification. |
||
59 | * |
||
60 | * @param mixed $notifiable |
||
61 | * @return array |
||
62 | */ |
||
63 | public function toArray($notifiable) |
||
66 | // |
||
67 | ]; |
||
68 | } |
||
70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.