| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 6 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 37 | 3 | public function send($notifiable, Notification $notification) |
|
| 38 | { |
||
| 39 | 3 | if (! $pushoverKey = $notifiable->routeNotificationFor('pushover')) { |
|
| 40 | 1 | return; |
|
| 41 | } |
||
| 42 | |||
| 43 | 2 | $message = $notification->toPushover($notifiable); |
|
|
|
|||
| 44 | |||
| 45 | try { |
||
| 46 | 2 | $this->pushover->send(array_merge($message->toArray(), [ |
|
| 47 | 2 | 'user' => $pushoverKey, |
|
| 48 | ])); |
||
| 49 | } catch (ServiceCommunicationError $serviceCommunicationError) { |
||
| 50 | $this->fireFailedEvent($notifiable, $notification, $serviceCommunicationError->getMessage()); |
||
| 51 | } |
||
| 52 | 2 | } |
|
| 53 | |||
| 61 |
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.