@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | 'redirect_uri' => $clientMetadata->getRedirectUris()[0] ?? null, |
94 | 94 | ], $params); |
95 | 95 | |
96 | - $params = \array_filter($params, static function ($value) { |
|
96 | + $params = \array_filter($params, static function($value) { |
|
97 | 97 | return null !== $value; |
98 | 98 | }); |
99 | 99 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | unset($params[$key]); |
103 | 103 | } elseif ('claims' === $key && (\is_array($value) || $value instanceof JsonSerializable)) { |
104 | 104 | $params['claims'] = \json_encode($value); |
105 | - } elseif (! \is_string($value)) { |
|
105 | + } elseif (!\is_string($value)) { |
|
106 | 106 | $params[$key] = (string) $value; |
107 | 107 | } |
108 | 108 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $this->tokenSetVerifier->validate($tokenSet, $client, $authSession, true, $maxAge); |
137 | 137 | } |
138 | 138 | |
139 | - if (! $tokenSet->getCode()) { |
|
139 | + if (!$tokenSet->getCode()) { |
|
140 | 140 | return $tokenSet; |
141 | 141 | } |
142 | 142 | |
@@ -153,15 +153,15 @@ discard block |
||
153 | 153 | ): TokenSetInterface { |
154 | 154 | $code = $tokenSet->getCode(); |
155 | 155 | |
156 | - if (! $code) { |
|
156 | + if (!$code) { |
|
157 | 157 | throw new RuntimeException('Unable to fetch token without a code'); |
158 | 158 | } |
159 | 159 | |
160 | - if (! $redirectUri) { |
|
160 | + if (!$redirectUri) { |
|
161 | 161 | $redirectUri = $client->getMetadata()->getRedirectUris()[0] ?? null; |
162 | 162 | } |
163 | 163 | |
164 | - if (! $redirectUri) { |
|
164 | + if (!$redirectUri) { |
|
165 | 165 | throw new InvalidArgumentException('A redirect_uri should be provided'); |
166 | 166 | } |
167 | 167 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | 'redirect_uri' => $redirectUri, |
172 | 172 | ]); |
173 | 173 | |
174 | - if (! ($params['id_token'] ?? null)) { |
|
174 | + if (!($params['id_token'] ?? null)) { |
|
175 | 175 | return TokenSet::fromParams($params); |
176 | 176 | } |
177 | 177 |