| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.1481 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 1 | public function send($notifiable, Notification $notification) |
|
| 30 | { |
||
| 31 | 1 | $zendeskParameters = $notification->toZendesk($notifiable)->toArray(); |
|
|
1 ignored issue
–
show
|
|||
| 32 | |||
| 33 | try { |
||
| 34 | 1 | $this->client->tickets()->create($zendeskParameters); |
|
| 35 | } catch (\Exception $e) { |
||
| 36 | throw CouldNotSendNotification::serviceRespondedWithAnError($e->getMessage()); |
||
| 37 | } |
||
| 38 | 1 | } |
|
| 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.