Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | protected function checkResponse(ResponseInterface $response, $data): void |
||
15 | { |
||
16 | if (!empty($data['errorCode'])) { |
||
17 | $error = $data['errorCode']; |
||
18 | if (!is_string($error)) { |
||
19 | $error = var_export($error, true); |
||
20 | } |
||
21 | throw new IdentityProviderException($error, 0, $data); |
||
22 | } |
||
23 | parent::checkResponse($response, $data); |
||
24 | } |
||
26 |