1 | <?php |
||||
2 | |||||
3 | namespace Ikechukwukalu\Requirepin\Notifications; |
||||
4 | |||||
5 | use Illuminate\Bus\Queueable; |
||||
6 | use Illuminate\Contracts\Queue\ShouldQueue; |
||||
7 | use Illuminate\Notifications\Messages\MailMessage; |
||||
8 | use Illuminate\Notifications\Notification; |
||||
9 | |||||
10 | class PinChange extends Notification implements ShouldQueue |
||||
11 | { |
||||
12 | use Queueable; |
||||
13 | |||||
14 | public function via($notifiable) |
||||
0 ignored issues
–
show
|
|||||
15 | { |
||||
16 | return ['mail']; |
||||
17 | } |
||||
18 | |||||
19 | public function toMail($notifiable) |
||||
0 ignored issues
–
show
The parameter
$notifiable is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
20 | { |
||||
21 | return (new MailMessage) |
||||
22 | ->subject(trans('requirepin::pin.notify.subject')) |
||||
23 | ->line(trans('requirepin::pin.notify.introduction')) |
||||
24 | ->line(trans('requirepin::pin.notify.message')) |
||||
25 | ->action(trans('requirepin::pin.notify.action'), url(config('requirepin.change_pin_route'))) |
||||
26 | ->line(trans('requirepin::pin.notify.complimentary_close')); |
||||
27 | } |
||||
28 | |||||
29 | public function toArray($notifiable) |
||||
0 ignored issues
–
show
The parameter
$notifiable is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
30 | { |
||||
31 | return [ |
||||
32 | // |
||||
33 | ]; |
||||
34 | } |
||||
35 | } |
||||
36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.