Passed
Pull Request — master (#42)
by Stefan
02:29
created
src/WebAuthn/WebAuthnRegistrationEvent.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public const PK_ALGORITHM_ECDSA = "-7";
23 23
     public const PK_ALGORITHM_RSA = "-257";
24
-    public const PK_ALGORITHM = [ self::PK_ALGORITHM_ECDSA, self::PK_ALGORITHM_RSA ];
24
+    public const PK_ALGORITHM = [self::PK_ALGORITHM_ECDSA, self::PK_ALGORITHM_RSA];
25 25
     public const AAGUID_ASSURANCE_LEVEL_NONE = 0;
26 26
     public const AAGUID_ASSURANCE_LEVEL_SELF = 1;
27 27
     public const AAGUID_ASSURANCE_LEVEL_BASIC = 2;
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         $keyDetails = openssl_pkey_get_details($keyResource);
274 274
         if (
275 275
             $credentialDetails['bits'] != $keyDetails['bits'] ||
276
-            $credentialDetails['key']  != $keyDetails['key']  ||
276
+            $credentialDetails['key'] != $keyDetails['key'] ||
277 277
             $credentialDetails['type'] != $keyDetails['type']
278 278
         ) {
279 279
             $this->fail(
Please login to merge, or discard this 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.