@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | ); |
162 | 162 | } else { |
163 | 163 | throw new EncryptionConfigurationException( |
164 | - 'The given response may be encrypted and sufficient ' . |
|
164 | + 'The given response may be encrypted and sufficient '. |
|
165 | 165 | 'encryption configuration has not been provided.', |
166 | 166 | 400 |
167 | 167 | ); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | public function getBaseAuthorizationUrl() |
180 | 180 | { |
181 | - return $this->getBaseUrlWithRealm() . '/protocol/openid-connect/auth'; |
|
181 | + return $this->getBaseUrlWithRealm().'/protocol/openid-connect/auth'; |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function getBaseAccessTokenUrl(array $params) |
192 | 192 | { |
193 | - return $this->getBaseUrlWithRealm() . '/protocol/openid-connect/token'; |
|
193 | + return $this->getBaseUrlWithRealm().'/protocol/openid-connect/token'; |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
204 | 204 | { |
205 | - return $this->getBaseUrlWithRealm() . '/protocol/openid-connect/userinfo'; |
|
205 | + return $this->getBaseUrlWithRealm().'/protocol/openid-connect/userinfo'; |
|
206 | 206 | } |
207 | 207 | |
208 | 208 | /** |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | public function getEntitlementsUrl(AccessToken $token) |
215 | 215 | { |
216 | - return $this->getBaseUrlWithRealm() . '/authz/entitlement/' . $this->clientId; |
|
216 | + return $this->getBaseUrlWithRealm().'/authz/entitlement/'.$this->clientId; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | */ |
224 | 224 | protected function getBaseUrlWithRealm() |
225 | 225 | { |
226 | - return $this->authServerUrl . '/realms/' . $this->realm; |
|
226 | + return $this->authServerUrl.'/realms/'.$this->realm; |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | { |
244 | 244 | $headers = parent::getAuthorizationHeaders($token); |
245 | 245 | if ($token != null) { |
246 | - $headers['Authorization'] = 'Bearer ' . $token; |
|
246 | + $headers['Authorization'] = 'Bearer '.$token; |
|
247 | 247 | } |
248 | 248 | return $headers; |
249 | 249 | } |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | protected function checkResponse(ResponseInterface $response, $data) |
260 | 260 | { |
261 | 261 | if (!empty($data['error'])) { |
262 | - $error = $data['error'] . ': ' . $data['error_description']; |
|
262 | + $error = $data['error'].': '.$data['error_description']; |
|
263 | 263 | throw new IdentityProviderException($error, 0, $data); |
264 | 264 | } |
265 | 265 | } |