| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.1406 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function send($notifiable, Notification $notification) |
|
| 29 | { |
||
| 30 | 1 | if (! $recipient = $notifiable->routeNotificationFor('Cmsms')) { |
|
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | 1 | $message = $notification->toCmsms($notifiable); |
|
|
|
|||
| 35 | |||
| 36 | 1 | if (is_string($message)) { |
|
| 37 | $message = CmsmsMessage::create($message); |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | $this->client->send($message, $recipient); |
|
| 41 | 1 | } |
|
| 42 | } |
||
| 43 |
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.