Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function send($notifiable, Notification $notification) |
|
19 | { |
||
20 | /** @var \Andreshg112\HablameSms\HablameMessage $message */ |
||
21 | 2 | $message = $notification->toHablameNotification($notifiable); |
|
|
|||
22 | |||
23 | 2 | $message = $message->toArray(); |
|
24 | |||
25 | 2 | $response = Facade::sendMessage( |
|
26 | 2 | $message['numero'], |
|
27 | 2 | $message['sms'], |
|
28 | 2 | $message['fecha'], |
|
29 | 2 | $message['referencia'] |
|
30 | ); |
||
31 | |||
32 | 2 | if ($response['resultado'] !== 0) { |
|
33 | 1 | throw CouldNotSendNotification::serviceRespondedWithAnError($response); |
|
34 | } |
||
35 | 1 | } |
|
36 | } |
||
37 |
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.