for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gamer\Notifications;
class ConfirmEmail extends MailNotification
{
public $token;
/**
* Create a new notification instance.
*
* @param string $token
*/
public function __construct($token)
$this->token = $token;
}
* Get the mail representation of the notification.
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
public function toMail($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.
$appName = ['appName' => setting('app-name')];
return $this->newMailMessage()
->subject(trans('auth.email_confirm_subject', $appName))
->greeting(trans('auth.email_confirm_greeting', $appName))
->line(trans('auth.email_confirm_text'))
->action(trans('auth.email_confirm_action'), baseUrl('/register/confirm/' . $this->token));
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.