Completed
Pull Request — master (#29)
by Florent
02:36
created
src/Fido2/CollectedClientData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
     private function requiredData($key, bool $isB64 = false): callable
109 109
     {
110
-        return function ($json) use ($key, $isB64) {
110
+        return function($json) use ($key, $isB64) {
111 111
             if (!array_key_exists($key, $json)) {
112 112
                 throw new \InvalidArgumentException(\Safe\sprintf('The key "%s" is missing', $key));
113 113
             }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     private function optionalData($key): callable
120 120
     {
121
-        return function ($json) use ($key) {
121
+        return function($json) use ($key) {
122 122
             if (!array_key_exists($key, $json)) {
123 123
                 return;
124 124
             }
Please login to merge, or discard this patch.
src/Fido2/AuthenticatorAttestationResponseValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         if (!array_key_exists('host', $parsedRelyingPartyId) || !\is_string($parsedRelyingPartyId['host'])) {
57 57
             throw new \InvalidArgumentException('Invalid origin rpId.');
58 58
         }
59
-        if (null !==  $rpId && $parsedRelyingPartyId['host'] !== $rpId) {
59
+        if (null !== $rpId && $parsedRelyingPartyId['host'] !== $rpId) {
60 60
             throw new \InvalidArgumentException('rpId mismatch.');
61 61
         }
62 62
 
Please login to merge, or discard this patch.