@@ -172,7 +172,7 @@ |
||
| 172 | 172 | } |
| 173 | 173 | } catch (\InvalidArgumentException $e) { |
| 174 | 174 | throw new OAuthException('invalid_request', |
| 175 | - 'The request includes the malformed parameter redirect_uri. ' . $e->getMessage(), |
|
| 175 | + 'The request includes the malformed parameter redirect_uri. '.$e->getMessage(), |
|
| 176 | 176 | 'https://tools.ietf.org/html/rfc6749#section-4.1'); |
| 177 | 177 | } |
| 178 | 178 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * WWW-Authenticate: Bearer realm="example" |
| 95 | 95 | */ |
| 96 | 96 | if (!$bearerAuthenticationMethodUsed) { |
| 97 | - return new Response(401, ['WWW-Authenticate' => 'Bearer' . ($realm ? ' realm="example"' : '')]); |
|
| 97 | + return new Response(401, ['WWW-Authenticate' => 'Bearer'.($realm ? ' realm="example"' : '')]); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | $token = $bearerAuthenticationMethodUsed->authenticate($request); |
@@ -150,13 +150,13 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | $header = 'Bearer'; |
| 152 | 152 | if ($realm) { |
| 153 | - $header .= ' realm="' . $realm . '"'; |
|
| 153 | + $header .= ' realm="'.$realm.'"'; |
|
| 154 | 154 | } |
| 155 | 155 | $header .= ' error="'.$e->getError().'"'; |
| 156 | - if($e->getErrorDescription()) { |
|
| 156 | + if ($e->getErrorDescription()) { |
|
| 157 | 157 | $header .= ' error_description="'.$e->getErrorDescription().'"'; |
| 158 | 158 | } |
| 159 | - if($e->getErrorUri()) { |
|
| 159 | + if ($e->getErrorUri()) { |
|
| 160 | 160 | $header .= ' error_uri="'.$e->getErrorUri().'"'; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | try { |
| 156 | 156 | $this->idTokenHint = $this->idTokenManager->decode($requestData['id_token_hint']); |
| 157 | 157 | } catch (\Exception $exception) { |
| 158 | - throw new OAuthException('invalid_request', 'Failed to decode id_token_hint : ' . $exception->getMessage()); |
|
| 158 | + throw new OAuthException('invalid_request', 'Failed to decode id_token_hint : '.$exception->getMessage()); |
|
| 159 | 159 | } |
| 160 | 160 | } |
| 161 | 161 | |