| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function send($notifiable, Notification $notification) |
||
| 28 | { |
||
| 29 | $message = $notification->toLobPostcard($notifiable); |
||
|
|
|||
| 30 | |||
| 31 | $messageContent = $message->toArray(); |
||
| 32 | |||
| 33 | if (($address = $notifiable->routeNotificationFor('Lob')) && ! isset($messageContent['to'])) { |
||
| 34 | $messageContent['to'] = $address; |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->lob->{$message->type}()->create($messageContent); |
||
| 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.