Passed
Push — master ( 4ed5da...df57b2 )
by Thomas Mauro
01:56
created
src/functions/parse_metadata_response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/functions/check_server_response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/JWT/NestedTokenLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AuthMethod/ClientSecretBasic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
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
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Model/IssuerMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -518,7 +518,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Model/ClientMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Authorization/AuthResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.