| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| 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 | $client = $message->client ?? $this->client; |
|
| 80 | |||
| 81 | 1 | $client->addNotifications($notifications); |
|
| 82 | |||
| 83 | 1 | return $client->push(); |
|
| 84 | } |
||
| 85 | } |
||
| 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.