| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function send($notifiable, Notification $notification) |
||
| 31 | { |
||
| 32 | if (! $url = $notifiable->routeNotificationFor('Webhook')) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | $webhookData = $notification->toWebhook($notifiable)->toArray(); |
||
|
|
|||
| 37 | |||
| 38 | return $this->client->post($url, [ |
||
| 39 | 'body' => json_encode(Arr::get($webhookData, 'data')), |
||
| 40 | 'verify' => false, |
||
| 41 | 'headers' => Arr::get($webhookData, 'headers'), |
||
| 42 | ]); |
||
| 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.