Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function toMail($notifiable) |
||
48 | { |
||
49 | return (new MailMessage) |
||
50 | ->line('Hey '.$notifiable->name) |
||
51 | ->line('We have a notfiication for you.') |
||
52 | ->line($this->info['title']) |
||
53 | ->line($this->info['details']) |
||
54 | ->action('Visit here for more info', url('/user/notifications')); |
||
55 | } |
||
56 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.