| Conditions | 3 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | protected function checkResponse(ResponseInterface $response, $data): void |
||
| 40 | { |
||
| 41 | if ($response->getStatusCode() >= 400) { |
||
| 42 | throw SePayIdentityProviderException::clientException($response, $data); |
||
| 43 | } elseif (isset($data['error'])) { |
||
| 44 | throw SePayIdentityProviderException::oauthException($response, $data); |
||
| 45 | } |
||
| 53 |