Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 4 | public static function make($notifiable, Notification $notification, $targeting) : array |
|
19 | { |
||
20 | 4 | $payload = $notification->toOneSignal($notifiable)->toArray(); |
|
|
|||
21 | |||
22 | 4 | if (static::isTargetingEmail($targeting)) { |
|
23 | 1 | $payload['filters'] = collect([['field' => 'email', 'value' => $targeting['email']]]); |
|
24 | } else { |
||
25 | 3 | $payload['include_player_ids'] = collect($targeting); |
|
26 | } |
||
27 | |||
28 | 4 | return $payload; |
|
29 | } |
||
30 | |||
41 |
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.