for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gamer\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class MailNotification 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'];
}
* Create a new mail message.
* @return MailMessage
protected function newMailMessage()
return (new MailMessage)->view(
[
'html' => 'vendor.notifications.email',
'text' => 'vendor.notifications.email-plain'
]
);
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.