@@ -40,7 +40,7 @@ |
||
40 | 40 | /** @var string|null $token */ |
41 | 41 | $token = $baseParams['response'] ?? null; |
42 | 42 | |
43 | - if (! $token) { |
|
43 | + if (!$token) { |
|
44 | 44 | throw new InvalidArgumentException('Invalid authorization request from provider, no "response" parameter'); |
45 | 45 | } |
46 | 46 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | $isJwt = array_key_exists('response', $params); |
46 | 46 | |
47 | - if (! $isJwt) { |
|
47 | + if (!$isJwt) { |
|
48 | 48 | return $baseMethod; |
49 | 49 | } |
50 | 50 |
@@ -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 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | $method = $this->methods[$authMethod] ?? null; |
41 | 41 | |
42 | - if (! $method) { |
|
42 | + if (!$method) { |
|
43 | 43 | throw new RuntimeException('Unsupported auth method "' . $authMethod . '"'); |
44 | 44 | } |
45 | 45 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $clientId = $client->getMetadata()->getClientId(); |
53 | 53 | $clientSecret = $client->getMetadata()->getClientSecret(); |
54 | 54 | |
55 | - if (! $clientSecret) { |
|
55 | + if (!$clientSecret) { |
|
56 | 56 | throw new InvalidArgumentException($this->getSupportedMethod() . ' cannot be used without client_secret metadata'); |
57 | 57 | } |
58 | 58 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | $jwk = $client->getJWKS()->selectKey('sig', null, $this->kid ? ['kid' => $this->kid] : []); |
62 | 62 | |
63 | - if (! $jwk) { |
|
63 | + if (!$jwk) { |
|
64 | 64 | throw new RuntimeException('Unable to get a client signature jwk'); |
65 | 65 | } |
66 | 66 |
@@ -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 |
@@ -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 |