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