| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 30 | public function send($notifiable, Notification $notification) |
||
| 31 | { |
||
| 32 | $message = $notification->toNetgsm($notifiable); |
||
|
|
|||
| 33 | |||
| 34 | if (! $message instanceof AbstractNetgsmMessage) { |
||
| 35 | throw new Exception(trans('netgsm::errors.invalid_netgsm_message')); |
||
| 36 | } |
||
| 37 | |||
| 38 | if (! $message->getRecipients()) { |
||
| 39 | $phone = $notifiable->routeNotificationFor('Netgsm'); |
||
| 40 | $message->setRecipients($phone); |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->netgsm->sendSms($message); |
||
| 44 | } |
||
| 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.