Passed
Push — master ( 8278f2...2a258c )
by Alexandre
02:55
created
src/Roles/ResourceServer/ResourceServer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Extensions/OpenID/Endpoints/AuthorizationEndpoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.