for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Notifications;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class ResetPassword extends Notification
{
public $token;
public function __construct($token)
$this->token = $token;
}
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('Your Reset Password Subject Here')
->line('You are receiving this email because we received a password reset request for your account.')
->action('Reset Password', env('FRONTEND_URL', 'http://localhost:3000').'/password/reset/'.$this->token)
->line('If you did not request a password reset, no further action is required.');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.