Failed Conditions
Push — master ( 449036...27fb37 )
by Florent
03:46
created
src/Component/Server/Endpoint/Authorization/AuthorizationRequestLoader.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)
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
      *
326 326
      * @return JWSInterface
327 327
      */
328
-    private function loadRequest(array $params, string $request, Client &$client = null): JWSInterface
328
+    private function loadRequest(array $params, string $request, Client & $client = null): JWSInterface
329 329
     {
330 330
         try {
331 331
             $jwt = $this->jwtLoader->load($request, $this->keyEncryptionKeySet, $this->requireEncryption);
Please login to merge, or discard this patch.
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.
src/Component/Server/Endpoint/Token/Processor/ProcessorManager.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)
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
     private function callableForNextRule(int $index): \Closure
57 57
     {
58 58
         if (!isset($this->processors[$index])) {
59
-            return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
59
+            return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
60 60
                 return $grantType->grant($request, $grantTypeData);
61 61
             };
62 62
         }
63 63
         $processor = $this->processors[$index];
64 64
 
65
-        return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
65
+        return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
66 66
             return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1));
67 67
         };
68 68
     }
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.