Failed Conditions
Pull Request — master (#26)
by Florent
09:49 queued 05:56
created
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.
PreConfiguredAuthorizationRepositoryInterface.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)
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @return PreConfiguredAuthorization
29 29
      */
30
-    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId): PreConfiguredAuthorization;
30
+    public function create(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : PreConfiguredAuthorization;
31 31
 
32 32
     /**
33 33
      * @param PreConfiguredAuthorization $preConfiguredAuthorization
@@ -42,5 +42,5 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return PreConfiguredAuthorization|null
44 44
      */
45
-    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId): ? PreConfiguredAuthorization;
45
+    public function find(UserAccountId $userAccountId, ClientId $clientId, array $scopes, ? ResourceServerId $resourceServerId) : ? PreConfiguredAuthorization;
46 46
 }
Please login to merge, or discard this patch.
Server/Model/InitialAccessToken/InitialAccessTokenRepositoryInterface.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)
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return InitialAccessToken
25 25
      */
26
-    public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt): InitialAccessToken;
26
+    public function create(? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken;
27 27
 
28 28
     /**
29 29
      * @param InitialAccessToken $initialAccessToken
Please login to merge, or discard this patch.
src/Component/Server/Model/InitialAccessToken/InitialAccessToken.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)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return InitialAccessToken
62 62
      */
63
-    public function create(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt): InitialAccessToken
63
+    public function create(InitialAccessTokenId $initialAccessTokenId, ? UserAccountId $userAccountId, ? \DateTimeImmutable $expiresAt) : InitialAccessToken
64 64
     {
65 65
         $clone = clone $this;
66 66
         $clone->initialAccessTokenId = $initialAccessTokenId;
Please login to merge, or discard this patch.
src/Component/Server/Model/AccessToken/AccessTokenRepositoryInterface.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)
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      *
34 34
      * @return AccessToken
35 35
      */
36
-    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt): AccessToken;
36
+    public function create(ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, array $scopes, ? RefreshTokenId $refreshTokenId, ? ResourceServerId $resourceServerId, ? \DateTimeImmutable $expiresAt) : AccessToken;
37 37
 
38 38
     /**
39 39
      * @param AccessToken $token
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/ClientRegistrationManagementRule.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)
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * {@inheritdoc}
25 25
      */
26
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
26
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
27 27
     {
28 28
         $validatedParameters = $next($commandParameters, $validatedParameters, $userAccountId);
29 29
         Assertion::true($validatedParameters->has('client_id'));
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/ScopePolicyDefaultRule.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)
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * {@inheritdoc}
24 24
      */
25
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
25
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
26 26
     {
27 27
         if ($commandParameters->has('default_scope')) {
28 28
             Assertion::regex($commandParameters->get('default_scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'default_scope\' parameter.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/IdTokenEncryptionAlgorithmsRule.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)
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * {@inheritdoc}
40 40
      */
41
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
41
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
42 42
     {
43 43
         if ($commandParameters->has('id_token_encrypted_response_alg') && $commandParameters->has('id_token_encrypted_response_enc')) {
44 44
             Assertion::string($commandParameters['id_token_encrypted_response_alg'], 'Invalid parameter \'id_token_encrypted_response_alg\'. The value must be a string.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/AbstractInternationalizedRule.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)
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @return array
26 26
      */
27
-    protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ? \Closure $closure): array
27
+    protected function getInternationalizedParameters(DataBag $requestedParameters, string $base, ? \Closure $closure) : array
28 28
     {
29 29
         $result = [];
30 30
         foreach ($requestedParameters->all() as $k => $v) {
Please login to merge, or discard this patch.