@@ -19,7 +19,7 @@ |
||
19 | 19 | /** @var boolean|array<string, mixed> $data */ |
20 | 20 | $data = \json_decode($response->getBody()->getContents(), true); |
21 | 21 | |
22 | - if (! \is_array($data)) { |
|
22 | + if (!\is_array($data)) { |
|
23 | 23 | throw new InvalidArgumentException('Invalid metadata content'); |
24 | 24 | } |
25 | 25 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | function checkServerResponse(ResponseInterface $response, ?int $expectedCode = null) |
15 | 15 | { |
16 | - if (! $expectedCode && $response->getStatusCode() >= 400) { |
|
16 | + if (!$expectedCode && $response->getStatusCode() >= 400) { |
|
17 | 17 | throw OAuth2Exception::fromResponse($response); |
18 | 18 | } |
19 | 19 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $claims = \json_decode($jws->getPayload(), true); |
47 | 47 | |
48 | - if (! \is_array($claims)) { |
|
48 | + if (!\is_array($claims)) { |
|
49 | 49 | throw new RuntimeException('Unable to decode claims'); |
50 | 50 | } |
51 | 51 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $clientId = $client->getMetadata()->getClientId(); |
38 | 38 | $clientSecret = $client->getMetadata()->getClientSecret(); |
39 | 39 | |
40 | - if (! $clientSecret) { |
|
40 | + if (!$clientSecret) { |
|
41 | 41 | throw new InvalidArgumentException($this->getSupportedMethod() . ' cannot be used without client_secret metadata'); |
42 | 42 | } |
43 | 43 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $clientId = $client->getMetadata()->getClientId(); |
38 | 38 | $clientSecret = $client->getMetadata()->getClientSecret(); |
39 | 39 | |
40 | - if (! $clientSecret) { |
|
40 | + if (!$clientSecret) { |
|
41 | 41 | throw new InvalidArgumentException($this->getSupportedMethod() . ' cannot be used without client_secret metadata'); |
42 | 42 | } |
43 | 43 |
@@ -518,7 +518,7 @@ |
||
518 | 518 | */ |
519 | 519 | private function getFilteredClaims(): array |
520 | 520 | { |
521 | - return \array_filter($this->claims, static function ($value, string $key) { |
|
521 | + return \array_filter($this->claims, static function($value, string $key) { |
|
522 | 522 | return \array_key_exists($key, static::$requiredKeys) |
523 | 523 | || $value !== (static::$defaults[$key] ?? null); |
524 | 524 | }, ARRAY_FILTER_USE_BOTH); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | */ |
141 | 141 | private function getFilteredClaims(): array |
142 | 142 | { |
143 | - return \array_filter($this->claims, static function ($value, string $key) { |
|
143 | + return \array_filter($this->claims, static function($value, string $key) { |
|
144 | 144 | return \array_key_exists($key, static::$requiredKeys) |
145 | 145 | || $value !== (static::$defaults[$key] ?? null); |
146 | 146 | }, ARRAY_FILTER_USE_BOTH); |
@@ -147,7 +147,7 @@ |
||
147 | 147 | 'code_verifier' => $this->codeVerifier, |
148 | 148 | ]; |
149 | 149 | |
150 | - return \array_filter($data, static function ($value) { |
|
150 | + return \array_filter($data, static function($value) { |
|
151 | 151 | return null !== $value; |
152 | 152 | }); |
153 | 153 | } |