Conditions | 4 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
30 | public function send($notifiable, Notification $notification) |
||
31 | { |
||
32 | $message = $notification->toSmsapi($notifiable); |
||
|
|||
33 | if (is_string($message)) { |
||
34 | $message = new SmsapiSmsMessage($message); |
||
35 | } |
||
36 | |||
37 | if ($to = $notifiable->routeNotificationFor('smsapi')) { |
||
38 | $message->to($to); |
||
39 | } elseif ($group = $notifiable->routeNotificationFor('smsapi_group')) { |
||
40 | $message->group($group); |
||
41 | } |
||
42 | |||
43 | return $this->client->send($message); |
||
44 | } |
||
45 | } |
||
46 |
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.