| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function hooksRespondedWithAnError(ClientException $exception) |
||
| 18 | { |
||
| 19 | $statusCode = $exception->getResponse()->getStatusCode(); |
||
| 20 | $result = json_decode($exception->getResponse()->getBody()); |
||
| 21 | |||
| 22 | return new static("Hooks API responded with an error `{$statusCode} - {$result->status} : {$result->msg}`"); |
||
| 23 | } |
||
| 24 | |||
| 54 |