@@ -107,7 +107,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -56,7 +56,7 @@ |
||
| 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 | |