Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
8 | class LogReportNotification extends Notification |
||
9 | { |
||
10 | public $logs; |
||
11 | |||
12 | /** |
||
13 | * Create a new notification instance. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function __construct($logs) |
||
18 | { |
||
19 | $this->logs = $logs->logs; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Get the notification's delivery channels. |
||
24 | * |
||
25 | * @param mixed $notifiable |
||
26 | * @return array |
||
27 | */ |
||
28 | public function via($notifiable) |
||
|
|||
29 | { |
||
30 | $notificationChannels = config('stethoscope.notifications.notifications.'.static::class); |
||
31 | |||
32 | return array_filter($notificationChannels); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get the mail representation of the notification. |
||
37 | * |
||
38 | * @param mixed $notifiable |
||
39 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
40 | */ |
||
41 | public function toMail($notifiable) |
||
47 | ]); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get the array representation of the notification. |
||
52 | * |
||
53 | * @param mixed $notifiable |
||
54 | * @return array |
||
55 | */ |
||
56 | public function toArray($notifiable) |
||
59 | // |
||
60 | ]; |
||
61 | } |
||
63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.