| Total Complexity | 5 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class CustomIdentityProviderException extends IdentityProviderException |
||
| 9 | { |
||
| 10 | public static function clientException(ResponseInterface $response, $data) |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function oauthException(ResponseInterface $response, $data) |
||
| 16 | { |
||
| 17 | return static::fromResponse($response, isset($data['error']) ? $data['error'] : $response->getReasonPhrase()); |
||
| 18 | } |
||
| 19 | |||
| 20 | protected static function fromResponse(ResponseInterface $response, $message = null) |
||
| 23 | } |
||
| 24 | } |
||
| 25 |