Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
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/Middleware/OAuth2SecurityMiddleware.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.
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.
src/Component/Server/Response/Factory/AccessDeniedResponseFactory.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(403, $data, $response);
36 36
     }
Please login to merge, or discard this patch.
src/Component/Server/Response/Factory/AuthenticateResponse.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.