Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
30 | public function send($notifiable, Notification $notification) |
||
31 | { |
||
32 | if (! $pushoverKey = $notifiable->routeNotificationFor('pushover')) { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | $message = $notification->toPushover($notifiable); |
||
|
|||
37 | |||
38 | $this->pushover->send([ |
||
39 | 'user' => $pushoverKey, |
||
40 | 'message' => $message->content, |
||
41 | 'title' => $message->title, |
||
42 | 'timestamp' => $message->timestamp, |
||
43 | 'priority' => $message->priority, |
||
44 | 'url' => $message->url, |
||
45 | 'url_title' => $message->urlTitle, |
||
46 | 'sound' => $message->sound, |
||
47 | 'retry' => $message->retry, |
||
48 | 'expire' => $message->expire, |
||
49 | ]); |
||
50 | } |
||
51 | } |
||
52 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.