Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.072 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 3 | public function send($notifiable, Notification $notification) |
|
27 | { |
||
28 | 3 | $to = $notifiable->routeNotificationFor('smscru'); |
|
29 | |||
30 | 3 | if (empty($to)) { |
|
31 | 1 | throw CouldNotSendNotification::missingRecipient(); |
|
32 | } |
||
33 | |||
34 | 2 | $message = $notification->toSmscRu($notifiable); |
|
|
|||
35 | |||
36 | 2 | if (is_string($message)) { |
|
37 | $message = new SmscRuMessage($message); |
||
38 | } |
||
39 | |||
40 | 2 | $this->sendMessage($to, $message); |
|
41 | 2 | } |
|
42 | |||
62 |
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.