Failed Conditions
Pull Request — master (#26)
by Florent
09:49 queued 05:56
created
src/Component/Server/Model/Client/Rule/ScopeRule.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)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * {@inheritdoc}
38 38
      */
39
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
39
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
40 40
     {
41 41
         if ($commandParameters->has('scope')) {
42 42
             Assertion::regex($commandParameters->get('scope'), '/^[\x20\x23-\x5B\x5D-\x7E]+$/', 'Invalid characters found in the \'scope\' parameter.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/SoftwareRule.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)
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * {@inheritdoc}
68 68
      */
69
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
69
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
70 70
     {
71 71
         Assertion::false($this->isSoftwareStatementRequired() && !$commandParameters->has('software_statement'), 'The parameter \'software_statement\' is mandatory.');
72 72
         if ($commandParameters->has('software_statement')) {
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/ScopePolicyRule.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)
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * {@inheritdoc}
38 38
      */
39
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
39
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
40 40
     {
41 41
         if ($commandParameters->has('scope_policy')) {
42 42
             Assertion::true($this->scopePolicyManager->has($commandParameters->get('scope_policy')), sprintf('The scope policy \'%s\' is not supported.', $commandParameters->get('scope_policy')));
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/GrantTypeFlowRule.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)
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * {@inheritdoc}
48 48
      */
49
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
49
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
50 50
     {
51 51
         if (!$commandParameters->has('grant_types')) {
52 52
             $commandParameters = $commandParameters->with('grant_types', []);
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/RuleManager.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)
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return DataBag
72 72
      */
73
-    public function handle(DataBag $commandParameters, ? UserAccountId $userAccountId): DataBag
73
+    public function handle(DataBag $commandParameters, ? UserAccountId $userAccountId) : DataBag
74 74
     {
75 75
         return call_user_func($this->callableForNextRule(0), $commandParameters, new DataBag(), $userAccountId);
76 76
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     private function callableForNextRule(int $index): \Closure
84 84
     {
85 85
         if (!isset($this->rules[$index])) {
86
-            return function (DataBag $commandParameters, DataBag $validatedParameters): DataBag {
86
+            return function(DataBag $commandParameters, DataBag $validatedParameters): DataBag {
87 87
                 $clientId = $this->clientIdRule->generateUniqueClientId();
88 88
                 $validatedParameters = $validatedParameters->with('client_id', $clientId);
89 89
                 $validatedParameters = $validatedParameters->with('client_id_issued_at', time());
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         }
94 94
         $rule = $this->rules[$index];
95 95
 
96
-        return function (DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId) use ($rule, $index): DataBag {
96
+        return function(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId) use ($rule, $index) : DataBag {
97 97
             return $rule->handle($commandParameters, $validatedParameters, $userAccountId, $this->callableForNextRule($index + 1));
98 98
         };
99 99
     }
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/RuleInterface.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)
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return DataBag
28 28
      */
29
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag;
29
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag;
30 30
 }
Please login to merge, or discard this patch.
Component/Server/Model/Client/Rule/TokenEndpointAuthMethodEndpointRule.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
         Assertion::true($commandParameters->has('token_endpoint_auth_method'), 'The parameter \'token_endpoint_auth_method\' is missing.');
44 44
         Assertion::string($commandParameters->get('token_endpoint_auth_method'), 'The parameter \'token_endpoint_auth_method\' must be a string.');
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/SectorIdentifierUriRule.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)
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * {@inheritdoc}
48 48
      */
49
-    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next): DataBag
49
+    public function handle(DataBag $commandParameters, DataBag $validatedParameters, ? UserAccountId $userAccountId, callable $next) : DataBag
50 50
     {
51 51
         if ($commandParameters->has('sector_identifier_uri')) {
52 52
             Assertion::url($commandParameters->get('sector_identifier_uri'), sprintf('The sector identifier URI \'%s\' is not valid.', $commandParameters->get('sector_identifier_uri')));
Please login to merge, or discard this patch.
src/Component/Server/Model/Client/Rule/RequestUriRule.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('request_uris')) {
28 28
             Assertion::isArray($commandParameters->get('request_uris'), 'The parameter \'request_uris\' must be a list of URI.');
Please login to merge, or discard this patch.