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