Failed Conditions
Pull Request — master (#22)
by Florent
08:54
created
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/Schema/DomainUriLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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)
Please login to merge, or discard this patch.
Server/Endpoint/Authorization/ParameterChecker/ScopeParameterChecker.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
      * @param ScopeRepositoryInterface $scopeRepository
39 39
      * @param null|ScopePolicyManager  $scopePolicyManager
40 40
      */
41
-    public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager)
41
+    public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager)
42 42
     {
43 43
         $this->scopeRepository = $scopeRepository;
44 44
         $this->scopePolicyManager = $scopePolicyManager;
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Processor/ScopeProcessor.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)
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @param ScopeRepositoryInterface $scopeRepository
40 40
      * @param ScopePolicyManager|null  $scopePolicyManager
41 41
      */
42
-    public function __construct(ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager)
42
+    public function __construct(ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager)
43 43
     {
44 44
         $this->scopeRepository = $scopeRepository;
45 45
         $this->scopePolicyManager = $scopePolicyManager;
Please login to merge, or discard this patch.
src/Component/Server/Endpoint/Token/Processor/ProcessorManager.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)
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param null|ScopeRepositoryInterface $scopeRepository
33 33
      * @param null|ScopePolicyManager       $scopePolicyManager
34 34
      */
35
-    public function __construct(?ScopeRepositoryInterface $scopeRepository, ?ScopePolicyManager $scopePolicyManager)
35
+    public function __construct(? ScopeRepositoryInterface $scopeRepository, ? ScopePolicyManager $scopePolicyManager)
36 36
     {
37 37
         if (null !== $scopeRepository) {
38 38
             $this->processors[] = new ScopeProcessor($scopeRepository, $scopePolicyManager);
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
     private function callableForNextRule(int $index): \Closure
61 61
     {
62 62
         if (!isset($this->processors[$index])) {
63
-            return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
63
+            return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
64 64
                 return $grantType->grant($request, $grantTypeData);
65 65
             };
66 66
         }
67 67
         $processor = $this->processors[$index];
68 68
 
69
-        return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
69
+        return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
70 70
             return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1));
71 71
         };
72 72
     }
Please login to merge, or discard this patch.