| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function send($notifiable, Notification $notification) |
||
| 30 | { |
||
| 31 | if (! $to = $notifiable->routeNotificationFor('clickatell')) { |
||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | $message = $notification->toClickatell($notifiable); |
||
|
|
|||
| 36 | |||
| 37 | if (is_string($message)) { |
||
| 38 | $message = new ClickatellMessage($message); |
||
| 39 | } |
||
| 40 | |||
| 41 | $this->clickatell->send($to, $message->getContent()); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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.