Failed Conditions
Push — master ( d82019...3e98d5 )
by Florent
03:42
created
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)
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param ScopeRepositoryInterface|null $scopeRepository
32 32
      */
33
-    public function __construct(?ScopeRepositoryInterface $scopeRepository)
33
+    public function __construct(? ScopeRepositoryInterface $scopeRepository)
34 34
     {
35 35
         if (null !== $scopeRepository) {
36 36
             $this->processors[] = new ScopeProcessor($scopeRepository);
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
     private function callableForNextRule(int $index): \Closure
59 59
     {
60 60
         if (!isset($this->processors[$index])) {
61
-            return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
61
+            return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType): GrantTypeData {
62 62
                 return $grantType->grant($request, $grantTypeData);
63 63
             };
64 64
         }
65 65
         $processor = $this->processors[$index];
66 66
 
67
-        return function (ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
67
+        return function(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantTypeInterface $grantType) use ($processor, $index): GrantTypeData {
68 68
             return $processor($request, $grantTypeData, $grantType, $this->callableForNextRule($index + 1));
69 69
         };
70 70
     }
Please login to merge, or discard this patch.