Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class ApproveSubscription extends Notification implements ShouldQueue |
||
12 | { |
||
13 | use Queueable; |
||
14 | |||
15 | public function __construct() |
||
16 | { |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Get the notification's delivery channels. |
||
21 | * |
||
22 | * @param mixed $notifiable |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function via($notifiable) |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Get the mail representation of the notification. |
||
33 | * |
||
34 | * @param mixed $notifiable |
||
35 | * |
||
36 | * @return \Illuminate\Notifications\Messages\MailMessage |
||
37 | */ |
||
38 | public function toMail($notifiable) |
||
39 | { |
||
40 | return (new MailMessage) |
||
41 | ->line('You are receiving this notification because you are subscribing to FaithGen.') |
||
42 | ->action('Approve Subscription', url("/api/subscriptions/{$notifiable->id}/{$notifiable->email}")) |
||
43 | ->line('Thank you for using our application!'); |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Get the array representation of the notification. |
||
48 | * |
||
49 | * @param mixed $notifiable |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function toArray($notifiable) |
||
56 | // |
||
57 | ]; |
||
60 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.