Passed
Push — master ( 3cb222...904589 )
by Thomas Mauro
03:39
created
src/Middleware/StateCheckerMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
     {
20 20
         $authResponse = $request->getAttribute(AuthResponseInterface::class);
21 21
 
22
-        if (! $authResponse instanceof AuthResponseInterface) {
22
+        if (!$authResponse instanceof AuthResponseInterface) {
23 23
             throw new RuntimeException('Unable to find a valid attribute for ' . AuthResponseInterface::class);
24 24
         }
25 25
 
26 26
         $authSession = $request->getAttribute(AuthSessionInterface::class);
27 27
 
28
-        if (! $authSession instanceof AuthSessionInterface) {
28
+        if (!$authSession instanceof AuthSessionInterface) {
29 29
             throw new RuntimeException('Unable to find a valid attribute for ' . AuthSessionInterface::class);
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Middleware/SessionCookieMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $cookieValue = $sessionCookie ? $sessionCookie->getValue() : null;
52 52
         $data = $cookieValue ? \json_decode($cookieValue, true) : [];
53 53
 
54
-        if (! \is_array($data)) {
54
+        if (!\is_array($data)) {
55 55
             $data = [];
56 56
         }
57 57
 
Please login to merge, or discard this patch.
src/ResponseMode/ResponseModeFactory.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
 
38 38
     public function create(string $responseMode): ResponseModeInterface
39 39
     {
40
-        if (! \array_key_exists($responseMode, $this->modes)) {
40
+        if (!\array_key_exists($responseMode, $this->modes)) {
41 41
             throw new InvalidArgumentException('Unsupported response mode "' . $responseMode . '"');
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/AuthMethod/ClientSecretPost.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/AuthMethodFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/JWT/JWSLoader.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/Provider/DiscoveryMetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         $data = parseMetadataResponse($response, 200);
41 41
 
42
-        if (! \array_key_exists('issuer', $data)) {
42
+        if (!\array_key_exists('issuer', $data)) {
43 43
             throw new RuntimeException('Invalid metadata content, no "issuer" key found');
44 44
         }
45 45
 
Please login to merge, or discard this patch.
src/Authorization/TokenResponse.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.
src/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
         /** @var string|null $endpointUri */
117 117
         $endpointUri = $this->getIssuer()->getMetadata()->get($endpointClaim);
118 118
 
119
-        if (! $endpointUri) {
119
+        if (!$endpointUri) {
120 120
             return null;
121 121
         }
122 122
 
123
-        if (! \in_array($authMethod, AuthMethodInterface::TLS_METHODS, true)) {
123
+        if (!\in_array($authMethod, AuthMethodInterface::TLS_METHODS, true)) {
124 124
             return $endpointUri;
125 125
         }
126 126
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $uri = $this->getEndpointUri('token_endpoint');
135 135
 
136
-        if (! $uri) {
136
+        if (!$uri) {
137 137
             throw new RuntimeException('Unable to retrieve the token endpoint');
138 138
         }
139 139
 
Please login to merge, or discard this patch.