Passed
Push — master ( c1ddb5...570b0e )
by Thomas Mauro
04:51
created
src/Token/TokenDecrypter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             throw new RuntimeException(sprintf('Unexpected JWE enc received, expected %s, got: %s', $expectedEnc, $header['enc'] ?? ''));
58 58
         }
59 59
 
60
-        if (! class_exists(JWELoader::class)) {
60
+        if (!class_exists(JWELoader::class)) {
61 61
             throw new LogicException('In order to decrypt JWT you should install web-token/jwt-encryption package');
62 62
         }
63 63
 
Please login to merge, or discard this patch.
src/Token/ResponseTokenVerifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $payload = json_decode(base64url_decode(explode('.', $token)[1] ?? '{}'), true);
73 73
 
74
-        if (! is_array($payload)) {
74
+        if (!is_array($payload)) {
75 75
             throw new InvalidArgumentException('Unable to decode token payload');
76 76
         }
77 77
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $jwks = $this->getSigningJWKSet($client, $expectedAlg, $kid);
110 110
 
111
-        if (! $this->jwsVerifier->verifyWithKeySet($jws, $jwks, 0)) {
111
+        if (!$this->jwsVerifier->verifyWithKeySet($jws, $jwks, 0)) {
112 112
             throw new InvalidArgumentException('Failed to validate JWT signature');
113 113
         }
114 114
 
Please login to merge, or discard this patch.
src/Token/IdTokenVerifier.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         $payload = json_decode(base64url_decode(explode('.', $idToken)[1] ?? '{}'), true);
94 94
 
95
-        if (! is_array($payload)) {
95
+        if (!is_array($payload)) {
96 96
             throw new InvalidArgumentException('Unable to decode token payload');
97 97
         }
98 98
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
         $requiredClaims = [];
119 119
 
120
-        if (! $fromUserInfo) {
120
+        if (!$fromUserInfo) {
121 121
             $requiredClaims = ['iss', 'sub', 'aud', 'exp', 'iat'];
122 122
         }
123 123
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $jwks = $this->getSigningJWKSet($client, $expectedAlg, $kid);
143 143
 
144
-        if (! $this->jwsVerifier->verifyWithKeySet($jws, $jwks, 0)) {
144
+        if (!$this->jwsVerifier->verifyWithKeySet($jws, $jwks, 0)) {
145 145
             throw new InvalidArgumentException('Failed to validate JWT signature');
146 146
         }
147 147
 
Please login to merge, or discard this patch.
src/Token/TokenSetVerifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $header = json_decode(base64url_decode(explode('.', $idToken)[0] ?? '{}'), true);
63 63
         $payload = json_decode(base64url_decode(explode('.', $idToken)[1] ?? '{}'), true);
64 64
 
65
-        if (! is_array($payload)) {
65
+        if (!is_array($payload)) {
66 66
             throw new InvalidArgumentException('Unable to decode token payload');
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/AuthMethod/ClientSecretJwt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             return $this->jwsBuilder;
54 54
         }
55 55
 
56
-        if (! class_exists(HS256::class)) {
56
+        if (!class_exists(HS256::class)) {
57 57
             throw new LogicException('To use the client_secret_jwt auth method you should install web-token/jwt-signature-algorithm-hmac package');
58 58
         }
59 59
 
Please login to merge, or discard this patch.
src/Issuer/Metadata/IssuerMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -580,7 +580,7 @@
 block discarded – undo
580 580
      */
581 581
     private function getFilteredClaims(): array
582 582
     {
583
-        return array_filter($this->metadata, static function ($value, string $key) {
583
+        return array_filter($this->metadata, static function($value, string $key) {
584 584
             return array_key_exists($key, self::$requiredKeys)
585 585
                 || $value !== (self::$defaults[$key] ?? null);
586 586
         }, ARRAY_FILTER_USE_BOTH);
Please login to merge, or discard this patch.
src/Client/Metadata/ClientMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
      */
182 182
     private function getFilteredClaims(): array
183 183
     {
184
-        return array_filter($this->metadata, static function ($value, string $key) {
184
+        return array_filter($this->metadata, static function($value, string $key) {
185 185
             return array_key_exists($key, self::$requiredKeys)
186 186
                 || $value !== (self::$defaults[$key] ?? null);
187 187
         }, ARRAY_FILTER_USE_BOTH);
Please login to merge, or discard this patch.