for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ikechukwukalu\Requirepin\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class PinChange extends Notification implements ShouldQueue
{
use Queueable;
public function via($notifiable)
$notifiable
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function via(/** @scrutinizer ignore-unused */ $notifiable)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return ['mail'];
}
public function toMail($notifiable)
public function toMail(/** @scrutinizer ignore-unused */ $notifiable)
return (new MailMessage)
->subject(trans('requirepin::pin.notify.subject'))
->line(trans('requirepin::pin.notify.introduction'))
->line(trans('requirepin::pin.notify.message'))
->action(trans('requirepin::pin.notify.action'), url(config('requirepin.change_pin_route')))
->line(trans('requirepin::pin.notify.complimentary_close'));
public function toArray($notifiable)
public function toArray(/** @scrutinizer ignore-unused */ $notifiable)
return [
//
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.