Passed
Push — master ( 09d5bd...167f1e )
by Stefan
02:11
created
src/Controller/AuthProcess.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             base64_decode($request->request->get('client_data_raw')),
166 166
             $oneToken[0],
167 167
             $oneToken[1],
168
-            (int)$oneToken[4], // algo
168
+            (int) $oneToken[4], // algo
169 169
             base64_decode($request->request->get('signature')),
170 170
             $debugEnabled
171 171
         );
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         if ($debugEnabled) {
225 225
             $response = new RunnableResponse(
226
-                function (WebAuthnAuthenticationEvent $authObject, array $state) {
226
+                function(WebAuthnAuthenticationEvent $authObject, array $state) {
227 227
                     echo $authObject->getDebugBuffer();
228 228
                     echo $authObject->getValidateBuffer();
229 229
                     echo "Debug mode, not continuing to " . ($state['FIDO2WantsRegister'] ? "credential registration page." : "destination.");
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
              * In passwordless, we're on our own. The one thing we know is the
248 248
              * username.
249 249
              */
250
-            $state['Attributes'][$state['FIDO2AttributeStoringUsername']] = [ $state['FIDO2Username'] ];
250
+            $state['Attributes'][$state['FIDO2AttributeStoringUsername']] = [$state['FIDO2Username']];
251 251
             // now properly return our final state to the framework
252 252
             Source::completeAuth($state);
253 253
         }
Please login to merge, or discard this patch.