| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 2 | public function send($notifiable, Notification $notification) |
|
| 26 | { |
||
| 27 | 2 | $message = $notification->toMessagebird($notifiable); |
|
|
|
|||
| 28 | |||
| 29 | 2 | if (is_string($message)) { |
|
| 30 | 1 | $message = MessagebirdMessage::create($message); |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | if ($to = $notifiable->routeNotificationFor('messagebird')) { |
|
| 34 | 2 | $message->setRecipients($to); |
|
| 35 | } |
||
| 36 | |||
| 37 | 2 | $this->client->send($message); |
|
| 38 | 2 | } |
|
| 39 | } |
||
| 40 |
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.