Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
71 | 1 | protected function sendNotifications($tokens, $payload) |
|
72 | { |
||
73 | 1 | $notifications = []; |
|
74 | |||
75 | 1 | foreach ($tokens as $token) { |
|
76 | 1 | $notifications[] = new PushNotification($payload, $token); |
|
77 | } |
||
78 | |||
79 | 1 | $this->client->addNotifications($notifications); |
|
80 | |||
81 | 1 | return $this->client->push(); |
|
82 | } |
||
83 | } |
||
84 |
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.