Completed
Pull Request — master (#15)
by Oguzhan
04:56
created
src/Tests/Authenticator/AuthenticatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
     {
176 176
         $authenticator = new Authenticator($this->keys);
177 177
         $request       = new Request();
178
-        $request->headers->set('Authorization', 'Bearer ' . self::TEST_TOKEN);
178
+        $request->headers->set('Authorization', 'Bearer '.self::TEST_TOKEN);
179 179
         $token = $authenticator->createToken($request, 'myprovider');
180 180
 
181 181
         $expected = new JwtToken(self::TEST_TOKEN);
Please login to merge, or discard this patch.
src/Authenticator/Authenticator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,10 +135,10 @@
 block discarded – undo
135 135
             if ($claimKey === 'aud') {
136 136
                 if (is_array($claimValue)) {
137 137
                     foreach ($claimValue as $role) {
138
-                        $user->addRole("ROLE_" . strtoupper($role));
138
+                        $user->addRole("ROLE_".strtoupper($role));
139 139
                     }
140 140
                 } elseif (is_string($claimValue)) {
141
-                    $user->addRole("ROLE_" . strtoupper($claimValue));
141
+                    $user->addRole("ROLE_".strtoupper($claimValue));
142 142
                 }
143 143
             }
144 144
         }
Please login to merge, or discard this patch.