@@ -93,18 +93,18 @@ |
||
93 | 93 | protected function checkResponse(ResponseInterface $response, $data) |
94 | 94 | { |
95 | 95 | if ((gettype($data) == 'string') && |
96 | - (preg_match('/error="([^"]*)"/',$data,$matches))) { |
|
96 | + (preg_match('/error="([^"]*)"/', $data, $matches))) { |
|
97 | 97 | $message = $matches[1]; |
98 | - if (preg_match('/error_description="([^"]*)"/',$data,$matches)) { |
|
99 | - $message .= ': ' . urldecode($matches[1]); |
|
98 | + if (preg_match('/error_description="([^"]*)"/', $data, $matches)) { |
|
99 | + $message .= ': '.urldecode($matches[1]); |
|
100 | 100 | } |
101 | - throw new IdentityProviderException($message,0,$data); |
|
101 | + throw new IdentityProviderException($message, 0, $data); |
|
102 | 102 | } elseif (!empty($data['error'])) { |
103 | 103 | $message = $data['error']; |
104 | 104 | if (!empty($data['error_description'])) { |
105 | - $message .= ': ' . $data['error_description']; |
|
105 | + $message .= ': '.$data['error_description']; |
|
106 | 106 | } |
107 | - throw new IdentityProviderException($message,0,$data); |
|
107 | + throw new IdentityProviderException($message, 0, $data); |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 |