| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function send($notifiable, Notification $notification) |
||
| 31 | { |
||
| 32 | $message = $notification->toAwsPinpoint($notifiable); |
||
|
|
|||
| 33 | |||
| 34 | if (is_string($message)) { |
||
| 35 | $message = AwsPinpointSmsMessage::create($message); |
||
| 36 | } |
||
| 37 | |||
| 38 | if ($to = $notifiable->routeNotificationFor('awspinpoint')) { |
||
| 39 | $message->setRecipients($to); |
||
| 40 | } |
||
| 41 | |||
| 42 | $this->client->send($message); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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.