Conditions | 3 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
24 | public static function clientException(ResponseInterface $response, array $data) |
||
25 | { |
||
26 | return static::fromResponse( |
||
27 | $response, |
||
28 | isset($data['error']) && isset($data['error_description']) ? $data['error'].': '.$data['error_description'] : $response->getReasonPhrase() |
||
29 | ); |
||
30 | } |
||
31 | |||
60 | } |