| Conditions | 5 |
| Paths | 7 |
| Total Lines | 29 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 18 | public function send($notifiable, Notification $notification): void |
||
| 19 | { |
||
| 20 | if (! $to = $notifiable->routeNotificationFor('smsbroadcast')) { |
||
| 21 | return; |
||
| 22 | } |
||
| 23 | |||
| 24 | $message = $notification->toSmsBroadcast($notifiable); |
||
|
|
|||
| 25 | |||
| 26 | if (is_string($message)) { |
||
| 27 | $message = new SmsBroadcastMessage($message); |
||
| 28 | } |
||
| 29 | |||
| 30 | if (! $message instanceof SmsBroadcastMessage) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | try { |
||
| 35 | $this->smsBroadcastClient->send( |
||
| 36 | $to, |
||
| 37 | $message->content, |
||
| 38 | $message->sender, |
||
| 39 | $message->reference, |
||
| 40 | true, |
||
| 41 | $message->delay |
||
| 42 | ); |
||
| 43 | } catch (\Exception $e) { |
||
| 44 | report($e); |
||
| 45 | |||
| 46 | return; |
||
| 47 | } |
||
| 50 |
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.