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