Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 3 | public function send($notifiable, Notification $notification) |
|
33 | { |
||
34 | 3 | $message = $notification->toMicrosoftTeams($notifiable); |
|
|
|||
35 | |||
36 | // if the recipient is not defined get it from the notifiable object |
||
37 | 3 | if ($message->toNotGiven()) { |
|
38 | 2 | $to = $notifiable->routeNotificationFor('microsoftTeams'); |
|
39 | |||
40 | 2 | $message->to($to); |
|
41 | } |
||
42 | |||
43 | 2 | $response = $this->microsoftTeams->send($message->getWebhookUrl(), $message->toArray()); |
|
44 | |||
45 | 2 | return $response; |
|
46 | } |
||
47 | } |
||
48 |
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.