Conditions | 4 |
Paths | 4 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function send($notifiable, Notification $notification) |
||
25 | { |
||
26 | $message = $notification->toSmsRu($notifiable); |
||
|
|||
27 | |||
28 | if ($message instanceof SmsRuMessage) { |
||
29 | return $this->api->send($message); |
||
30 | } |
||
31 | |||
32 | if (! ($to = $notifiable->routeNotificationFor('SmsRu', $notification))) { |
||
33 | return null; |
||
34 | } |
||
35 | |||
36 | if (\is_string($message)) { |
||
37 | return $this->api->send(new SmsRuMessage(new To($to, $message))); |
||
38 | } |
||
39 | |||
40 | return null; |
||
41 | } |
||
42 | } |
||
43 |
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.