Passed
Push — master ( df7a06...000e40 )
by Tim
03:26
created
src/WebAuthn/WebAuthnRegistrationEvent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
                 $keyObject = new Ec2Key($this->cborDecode(hex2bin($this->credential)));
415 415
                 $keyResource = openssl_pkey_get_public($keyObject->asPEM());
416 416
                 if ($keyResource === false) {
417
-                      $this->fail("Unable to construct ECDSA public key resource from PEM.");
417
+                        $this->fail("Unable to construct ECDSA public key resource from PEM.");
418 418
                 };
419 419
                 break;
420 420
             case self::PK_ALGORITHM_RSA:
Please login to merge, or discard this patch.
src/WebAuthn/WebAuthnAbstractEvent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
         return $this->credential;
183 183
     }
184 184
 
185
-   /**
185
+    /**
186 186
      * @return int
187 187
      */
188 188
     public function getAlgo(): int
Please login to merge, or discard this patch.
src/WebAuthn/Store/Database.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
         $st = $this->db->write(
217 217
             'INSERT INTO credentials ' .
218 218
             '(user_id, credentialId, credential, algo, presenceLevel, isResidentKey, signCounter, friendlyName, hashedId) VALUES '
219
-          . '(:userId,:credentialId,:credential,:algo,:presenceLevel,:isResidentKey,:signCounter,:friendlyName,:hashedId)',
219
+            . '(:userId,:credentialId,:credential,:algo,:presenceLevel,:isResidentKey,:signCounter,:friendlyName,:hashedId)',
220 220
             [
221 221
                 'userId' => $userId,
222 222
                 'credentialId' => $credentialId,
Please login to merge, or discard this patch.
src/Controller/WebAuthn.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
             }
110 110
             return self::STATE_AUTH_ALLOWMGMT;
111 111
         } else { // in inflow, allow to check the management box; otherwise,
112
-                 // only auth
112
+                    // only auth
113 113
             $moduleConfig = Configuration::getOptionalConfig('module_webauthn.php')->toArray();
114 114
             return $moduleConfig['registration']['use_inflow_registration'] ? self::STATE_AUTH_ALLOWMGMT : self::STATE_AUTH_NOMGMT;
115 115
         }
Please login to merge, or discard this patch.