for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Fort\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class RegistrationSuccessNotification extends Notification implements ShouldQueue
{
use Queueable;
/**
* Get the notification's channels.
*
* @param mixed $notifiable
* @return array|string
*/
public function via($notifiable)
$notifiable
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return ['mail'];
}
* Build the mail representation of the notification.
* @return \Illuminate\Notifications\Messages\MailMessage
public function toMail($notifiable): MailMessage
return (new MailMessage())
->subject(trans('cortex/fort::emails.register.welcome.subject'))
->line(config('rinvex.fort.registration.moderated')
? trans('cortex/fort::emails.register.welcome.intro_moderation')
: trans('cortex/fort::emails.register.welcome.intro_default')
);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.