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