Failed Conditions
Push — master ( 896e74...31a79d )
by Florent
08:16 queued 03:41
created
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.
src/Component/Server/TokenType/TokenTypeManager.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)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @return string|null
91 91
      */
92
-    public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, TokenTypeInterface &$type = null)
92
+    public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, TokenTypeInterface & $type = null)
93 93
     {
94 94
         foreach ($this->all() as $tmp_type) {
95 95
             $tmpAdditionalCredentialValues = [];
Please login to merge, or discard this patch.
src/Component/Server/Middleware/Pipe.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)
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function process(ServerRequestInterface $request, DelegateInterface $delegate)
86 86
     {
87
-        $this->middlewares[] = new Delegate(function (ServerRequestInterface $request) use ($delegate) {
87
+        $this->middlewares[] = new Delegate(function(ServerRequestInterface $request) use ($delegate) {
88 88
             return $delegate->process($request);
89 89
         });
90 90
 
@@ -121,12 +121,12 @@  discard block
 block discarded – undo
121 121
         if (isset($this->middlewares[$index])) {
122 122
             $middleware = $this->middlewares[$index];
123 123
 
124
-            return new Delegate(function (ServerRequestInterface $request) use ($middleware, $index) {
124
+            return new Delegate(function(ServerRequestInterface $request) use ($middleware, $index) {
125 125
                 return $middleware->process($request, $this->resolve($index + 1));
126 126
             });
127 127
         }
128 128
 
129
-        return new Delegate(function () {
129
+        return new Delegate(function() {
130 130
             throw new \LogicException('Unresolved request: middleware exhausted with no result.');
131 131
         });
132 132
     }
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/AuthenticateResponseFactory.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)
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * {@inheritdoc}
31 31
      */
32
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface
32
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface
33 33
     {
34 34
         $schemes = $this->getSchemes();
35 35
 
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/RedirectResponseFactory.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)
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * {@inheritdoc}
34 34
      */
35
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface
35
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface
36 36
     {
37 37
         Assertion::keyExists($data, 'response_mode', 'The \'response_mode\' parameter is missing.');
38 38
         Assertion::keyExists($data, 'redirect_uri', 'The \'redirect_uri\' parameter is missing.');
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/MethodNotAllowedResponseFactory.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,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * {@inheritdoc}
32 32
      */
33
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface
33
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface
34 34
     {
35 35
         return new OAuth2Error(405, $data, $response);
36 36
     }
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/NotImplementedResponseFactory.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,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * {@inheritdoc}
32 32
      */
33
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface
33
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface
34 34
     {
35 35
         return new OAuth2Error(501, $data, $response);
36 36
     }
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/BadRequestResponseFactory.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,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * {@inheritdoc}
32 32
      */
33
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface
33
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface
34 34
     {
35 35
         return new OAuth2Error(400, $data, $response);
36 36
     }
Please login to merge, or discard this patch.