for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\NexmoMessage;
class InvoicePaid extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct()
//
}
* Get the notification's delivery channels.
* @param mixed $notifiable
* @return string[]
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 [ 'nexmo' ];
* Get the SMS representation of the notification.
* @return \Illuminate\Notifications\Messages\NexmoMessage
public function toNexmo($notifiable)
public function toNexmo(/** @scrutinizer ignore-unused */ $notifiable)
return (new NexmoMessage)
->content('SmartSettia SMS: Invoice paid!')
->from('12088851101');
* Get the array representation of the notification.
* @return array
public function toArray($notifiable)
public function toArray(/** @scrutinizer ignore-unused */ $notifiable)
return [
];
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.