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