Completed
Push — master ( 2a258c...683c35 )
by Alexandre
02:27
created
src/Roles/ResourceServer/ResourceServer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
              * WWW-Authenticate: Bearer realm="example"
106 106
              */
107 107
             if (!$bearerAuthenticationMethodUsed) {
108
-                return new Response(401, ['WWW-Authenticate' => 'Bearer' . ($realm ? ' realm="example"' : '')]);
108
+                return new Response(401, ['WWW-Authenticate' => 'Bearer'.($realm ? ' realm="example"' : '')]);
109 109
             }
110 110
 
111 111
             $token = $bearerAuthenticationMethodUsed->authenticate($request);
@@ -205,14 +205,14 @@  discard block
 block discarded – undo
205 205
 
206 206
             $header = 'Bearer';
207 207
             if ($realm) {
208
-                $header .= ' realm="' . $realm . '"';
208
+                $header .= ' realm="'.$realm.'"';
209 209
             }
210
-            $header .= ' error="' . $e->getError() . '"';
210
+            $header .= ' error="'.$e->getError().'"';
211 211
             if ($e->getErrorDescription()) {
212
-                $header .= ' error_description="' . $e->getErrorDescription() . '"';
212
+                $header .= ' error_description="'.$e->getErrorDescription().'"';
213 213
             }
214 214
             if ($e->getErrorUri()) {
215
-                $header .= ' error_uri="' . $e->getErrorUri() . '"';
215
+                $header .= ' error_uri="'.$e->getErrorUri().'"';
216 216
             }
217 217
 
218 218
             return new Response($statusCode, ['WWW-Authenticate' => $header]);
Please login to merge, or discard this patch.
src/Roles/ResourceServerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,5 +53,5 @@
 block discarded – undo
53 53
      * "scope" value is intended for programmatic use and is not meant to be
54 54
      * displayed to end-users.
55 55
      */
56
-    public function verifyRequest(ServerRequestInterface $request,  ?string $realm = null, ?string $scope = null): ?ResponseInterface;
56
+    public function verifyRequest(ServerRequestInterface $request, ?string $realm = null, ?string $scope = null): ?ResponseInterface;
57 57
 }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.