| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| 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 | $client = $message->client ?? $this->client; |
|
| 60 | |||
| 61 | 1 | $payload = (new ApnAdapter)->adapt($message); |
|
| 62 | |||
| 63 | 1 | return $this->sendNotifications($client, $tokens, $payload); |
|
| 64 | } |
||
| 65 | |||
| 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.