Passed
Push — master ( f804fd...874950 )
by Stefan
02:19
created
src/Controller/WebAuthn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
         $frontendData = [];
131 131
         $frontendData['challengeEncoded'] = $challengeEncoded;
132 132
         $frontendData['state'] = [];
133
-        foreach (['Source', 'FIDO2Scope','FIDO2Username','FIDO2Displayname','requestTokenModel'] as $stateItem) {
133
+        foreach (['Source', 'FIDO2Scope', 'FIDO2Username', 'FIDO2Displayname', 'requestTokenModel'] as $stateItem) {
134 134
             $frontendData['state'][$stateItem] = $state[$stateItem];
135 135
         }
136 136
 
Please login to merge, or discard this patch.
src/WebAuthn/WebAuthnRegistrationEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public const PK_ALGORITHM_ECDSA = "-7";
26 26
     public const PK_ALGORITHM_RSA = "-257";
27
-    public const PK_ALGORITHM = [ self::PK_ALGORITHM_ECDSA, self::PK_ALGORITHM_RSA ];
27
+    public const PK_ALGORITHM = [self::PK_ALGORITHM_ECDSA, self::PK_ALGORITHM_RSA];
28 28
     public const AAGUID_ASSURANCE_LEVEL_NONE = 0;
29 29
     public const AAGUID_ASSURANCE_LEVEL_SELF = 1;
30 30
     public const AAGUID_ASSURANCE_LEVEL_BASIC = 2;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $keyDetails = openssl_pkey_get_details($keyResource);
264 264
         if (
265 265
             $credentialDetails['bits'] != $keyDetails['bits'] ||
266
-            $credentialDetails['key']  != $keyDetails['key'] ||
266
+            $credentialDetails['key'] != $keyDetails['key'] ||
267 267
             $credentialDetails['type'] != $keyDetails['type']
268 268
         ) {
269 269
             $this->fail(
Please login to merge, or discard this patch.
src/Controller/AuthProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
 
177 177
         if ($debugEnabled) {
178 178
             $response = new RunnableResponse(
179
-                function (WebAuthnAuthenticationEvent $authObject, array $state) {
179
+                function(WebAuthnAuthenticationEvent $authObject, array $state) {
180 180
                     echo $authObject->getDebugBuffer();
181 181
                     echo $authObject->getValidateBuffer();
182 182
                     echo "Debug mode, not continuing to " . ($state['FIDO2WantsRegister'] ? "credential registration page." : "destination.");
Please login to merge, or discard this patch.
src/Controller/RegProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
         $id = $this->authState::saveState($state, 'webauthn:request');
197 197
         if ($debugEnabled === true) {
198 198
             $response = new RunnableResponse(
199
-                function (WebAuthnRegistrationEvent $regObject, string $id) {
199
+                function(WebAuthnRegistrationEvent $regObject, string $id) {
200 200
                     echo $regObject->getDebugBuffer();
201 201
                     echo $regObject->getValidateBuffer();
202 202
                     echo "<form id='regform' method='POST' action='" .
Please login to merge, or discard this patch.