for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Notifications\User\Email;
use App\Auth\EmailDispensary;
use App\Models\User;
use App\SPA\UrlGenerator;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Lang;
use function config;
final class CantUpdate extends Notification
{
public function via(): array
return ['mail'];
}
public function toMail(User $user): MailMessage
$user
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function toMail(/** @scrutinizer ignore-unused */ User $user): MailMessage
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return (new MailMessage())
->subject('Email address update request')
->line('You are receiving this email because you\'ve requested to change your email address.')
->line('Sadly, you already have an account with this email address in place and we are unable change it.');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.