Failed Conditions
Push — master ( 38feee...37fc51 )
by Florent
06:58 queued 03:00
created
src/Component/Server/Endpoint/Authorization/Authorization.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * @return null|TokenTypeInterface
177 177
      */
178
-    public function getTokenType(): ?TokenTypeInterface
178
+    public function getTokenType(): ? TokenTypeInterface
179 179
     {
180 180
         return $this->tokenType;
181 181
     }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     /**
219 219
      * @return null|ResponseModeInterface
220 220
      */
221
-    public function getResponseMode(): ?ResponseModeInterface
221
+    public function getResponseMode(): ? ResponseModeInterface
222 222
     {
223 223
         return $this->responseMode;
224 224
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * @return null|string
241 241
      */
242
-    public function getRedirectUri(): ?string
242
+    public function getRedirectUri(): ? string
243 243
     {
244 244
         return $this->redirectUri;
245 245
     }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     /**
263 263
      * @return null|UserAccountInterface
264 264
      */
265
-    public function getUserAccount(): ?UserAccountInterface
265
+    public function getUserAccount(): ? UserAccountInterface
266 266
     {
267 267
         return $this->userAccount;
268 268
     }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     /**
337 337
      * @return bool|null
338 338
      */
339
-    public function isUserAccountFullyAuthenticated(): ?bool
339
+    public function isUserAccountFullyAuthenticated(): ? bool
340 340
     {
341 341
         return $this->userAccountFullyAuthenticated;
342 342
     }
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
     /**
446 446
      * @return bool|null
447 447
      */
448
-    public function isAuthorized(): ?bool
448
+    public function isAuthorized(): ? bool
449 449
     {
450 450
         return $this->authorized;
451 451
     }
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
     /**
512 512
      * @return null|ResourceServerInterface
513 513
      */
514
-    public function getResourceServer(): ?ResourceServerInterface
514
+    public function getResourceServer(): ? ResourceServerInterface
515 515
     {
516 516
         return $this->resourceServer;
517 517
     }
Please login to merge, or discard this patch.
Server/Endpoint/Authorization/ParameterChecker/ParameterCheckerManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
     private function callableForNextExtension($index)
53 53
     {
54 54
         if (!array_key_exists($index, $this->parameterCheckers)) {
55
-            return function (Authorization $authorization): Authorization {
55
+            return function(Authorization $authorization): Authorization {
56 56
                 return $authorization;
57 57
             };
58 58
         }
59 59
         $parameterChecker = $this->parameterCheckers[$index];
60 60
 
61
-        return function (Authorization $authorization) use ($parameterChecker, $index): Authorization {
61
+        return function(Authorization $authorization) use ($parameterChecker, $index): Authorization {
62 62
             return $parameterChecker->process($authorization, $this->callableForNextExtension($index + 1));
63 63
         };
64 64
     }
Please login to merge, or discard this patch.
Server/Endpoint/Authorization/Exception/CreateRedirectionException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string        $message
35 35
      * @param null|string   $description
36 36
      */
37
-    public function __construct(Authorization $authorization, string $message, ?string $description)
37
+    public function __construct(Authorization $authorization, string $message, ? string $description)
38 38
     {
39 39
         parent::__construct($message);
40 40
         $this->authorization = $authorization;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return null|string
54 54
      */
55
-    public function getDescription(): ?string
55
+    public function getDescription(): ? string
56 56
     {
57 57
         return $this->description;
58 58
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/GrantTypeData.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @param Client|null $client
62 62
      */
63
-    private function __construct(?Client $client)
63
+    private function __construct(? Client $client)
64 64
     {
65 65
         $this->parameters = new DataBag();
66 66
         $this->metadatas = new DataBag();
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return GrantTypeData
74 74
      */
75
-    public static function create(?Client $client): GrantTypeData
75
+    public static function create(? Client $client) : GrantTypeData
76 76
     {
77 77
         return new self($client);
78 78
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * @return Client|null
183 183
      */
184
-    public function getClient(): ?Client
184
+    public function getClient(): ? Client
185 185
     {
186 186
         return $this->client;
187 187
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * @return string[]|null
312 312
      */
313
-    public function getAvailableScopes(): ?array
313
+    public function getAvailableScopes(): ? array
314 314
     {
315 315
         return $this->availableScopes;
316 316
     }
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/TokenEndpointExtensionManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
     private function callableForNextExtension($index)
55 55
     {
56 56
         if (!array_key_exists($index, $this->extensions)) {
57
-            return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array {
57
+            return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken): array {
58 58
                 return $accessToken->getResponseData();
59 59
             };
60 60
         }
61 61
         $extension = $this->extensions[$index];
62 62
 
63
-        return function (Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array {
63
+        return function(Client $client, ResourceOwnerInterface $resourceOwner, AccessToken $accessToken) use ($extension, $index): array {
64 64
             return $extension->process($client, $resourceOwner, $accessToken, $this->callableForNextExtension($index + 1));
65 65
         };
66 66
     }
Please login to merge, or discard this patch.
Endpoint/UserInfo/Pairwise/PairwiseSubjectIdentifierAlgorithmInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -30,5 +30,5 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return string|null
32 32
      */
33
-    public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ?string;
33
+    public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ? string;
34 34
 }
Please login to merge, or discard this patch.
Component/Server/Endpoint/UserInfo/Pairwise/EncryptedSubjectIdentifier.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param null|string $iv
48 48
      * @param string      $salt
49 49
      */
50
-    public function __construct(string $pairwiseEncryptionKey, string $algorithm, string $salt, ?string $iv)
50
+    public function __construct(string $pairwiseEncryptionKey, string $algorithm, string $salt, ? string $iv)
51 51
     {
52 52
         Assertion::inArray($algorithm, openssl_get_cipher_methods(), sprintf('The algorithm \'%s\' is not supported.', $algorithm));
53 53
         $this->pairwiseEncryptionKey = $pairwiseEncryptionKey;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * {@inheritdoc}
76 76
      */
77
-    public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ?string
77
+    public function getPublicIdFromSubjectIdentifier(string $subjectIdentifier): ? string
78 78
     {
79 79
         $decoded = openssl_decrypt(Base64Url::decode($subjectIdentifier), $this->algorithm, $this->pairwiseEncryptionKey, OPENSSL_RAW_DATA, $this->iv);
80 80
         $parts = explode(':', $decoded);
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/UserInfo/UserInfoEndpoint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      *
102 102
      * @return string
103 103
      */
104
-    private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ?bool &$isJwt): string
104
+    private function buildUserinfoContent(Client $client, UserAccountInterface $userAccount, AccessToken $accessToken, ? bool & $isJwt) : string
105 105
     {
106 106
         $isJwt = false;
107 107
         $requestedClaims = $this->getEndpointClaims($accessToken);
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/UserInfo/UserInfo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return array
66 66
      */
67
-    public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ?string $claimsLocales): array
67
+    public function getUserinfo(Client $client, UserAccountInterface $userAccount, string $redirectUri, array $requestClaims, array $scopes, ? string $claimsLocales) : array
68 68
     {
69 69
         $requestClaims = array_merge(
70 70
             $this->getClaimsFromClaimScope($scopes),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      *
109 109
      * @return array
110 110
      */
111
-    private function getClaimValues(UserAccountInterface $userAccount, array $claims, ?string $claimsLocales): array
111
+    private function getClaimValues(UserAccountInterface $userAccount, array $claims, ? string $claimsLocales) : array
112 112
     {
113 113
         $result = [];
114 114
         if (null === $claimsLocales) {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     /**
185 185
      * @return PairwiseSubjectIdentifierAlgorithmInterface|null
186 186
      */
187
-    public function getPairwiseSubjectIdentifierAlgorithm(): ?PairwiseSubjectIdentifierAlgorithmInterface
187
+    public function getPairwiseSubjectIdentifierAlgorithm(): ? PairwiseSubjectIdentifierAlgorithmInterface
188 188
     {
189 189
         return $this->pairwiseAlgorithm;
190 190
     }
Please login to merge, or discard this patch.