Passed
Branch master (4ed5da)
by Thomas Mauro
04:16
created
Category
src/ResponseMode/AbstractJwt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ResponseMode/ResponseModeProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
 
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/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/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/AuthMethod/ClientSecretJwt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AuthMethod/PrivateKeyJwtAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
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/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.