| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 1 | public function send($notifiable, Notification $notification) |
|
| 49 | { |
||
| 50 | 1 | $tokens = (array) $notifiable->routeNotificationFor('apn', $notification); |
|
| 51 | |||
| 52 | 1 | if (empty($tokens)) { |
|
| 53 | return; |
||
| 54 | } |
||
| 55 | |||
| 56 | 1 | $message = $notification->toApn($notifiable); |
|
|
|
|||
| 57 | |||
| 58 | 1 | $payload = (new ApnAdapter)->adapt($message); |
|
| 59 | |||
| 60 | 1 | $this->sendNotifications($tokens, $payload); |
|
| 61 | 1 | } |
|
| 62 | |||
| 83 |
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.