Passed
Push — master ( 499cc4...2ddbbc )
by Stefan
02:18
created
src/Controller/AuthProcess.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             base64_decode($request->request->get('client_data_raw')),
161 161
             $oneToken[0],
162 162
             $oneToken[1],
163
-            (int)$oneToken[4], // algo
163
+            (int) $oneToken[4], // algo
164 164
             base64_decode($request->request->get('signature')),
165 165
             $debugEnabled
166 166
         );
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
         if ($debugEnabled) {
218 218
             $response = new RunnableResponse(
219
-                    function (WebAuthnAuthenticationEvent $authObject, array $state) {
219
+                    function(WebAuthnAuthenticationEvent $authObject, array $state) {
220 220
                         echo $authObject->getDebugBuffer();
221 221
                         echo $authObject->getValidateBuffer();
222 222
                         echo "Debug mode, not continuing to " . ($state['FIDO2WantsRegister'] ? "credential registration page." : "destination.");
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
              * In passwordless, we're on our own. The one thing we know is the
241 241
              * username.
242 242
              */
243
-            $state['Attributes'][$state['FIDO2AttributeStoringUsername']] = [ $state['FIDO2Username'] ];
243
+            $state['Attributes'][$state['FIDO2AttributeStoringUsername']] = [$state['FIDO2Username']];
244 244
             // now properly return our final state to the framework
245 245
             Source::completeAuth($state);
246 246
         }
Please login to merge, or discard this patch.