Passed
Push — master ( dbb076...fc99de )
by Koldo
03:03
created
src/Middleware/RouteNotFoundMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $promise = new FulfilledPromise();
20 20
 
21
-        return new PromiseResponse($promise->then(function () {
21
+        return new PromiseResponse($promise->then(function() {
22 22
             return new HtmlResponse('<html><head></head><body>Page not found</body></html>', 404);
23 23
         }));
24 24
     }
Please login to merge, or discard this patch.
src/Middleware/RequestLoggerMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
     {
29 29
         $logger = $this->logger;
30 30
         return new PromiseResponse(resolve($request)
31
-            ->then(static function (ServerRequestInterface $request) use ($handler, $logger) {
31
+            ->then(static function(ServerRequestInterface $request) use ($handler, $logger) {
32 32
                 $logger->debug(\json_encode([
33 33
                     'method' => $request->getMethod(),
34 34
                     'target' => $request->getRequestTarget(),
35 35
                     'headers' => $request->getHeaders(),
36 36
                     'query-string' => $request->getQueryParams(),
37
-                    'body' => (string)$request->getBody()
37
+                    'body' => (string) $request->getBody()
38 38
                 ], JSON_THROW_ON_ERROR));
39 39
 
40 40
                 return $handler->handle($request);
Please login to merge, or discard this patch.
src/Middleware/RouteDispatcherMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         return new PromiseResponse(
29 29
             resolve($this->router->match($request))
30
-                ->then(static function (PipedRouteMiddleware $route) use ($request, $handler) {
30
+                ->then(static function(PipedRouteMiddleware $route) use ($request, $handler) {
31 31
                     if (true === $route->isFail()) {
32 32
                         return $handler->handle($request);
33 33
                     }
Please login to merge, or discard this patch.
src/Middleware/ErrorMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         return new PromiseResponse(
34 34
             resolve($request)
35 35
                 ->then(
36
-                    static function (ServerRequestInterface $request) use ($handler, $debug) {
36
+                    static function(ServerRequestInterface $request) use ($handler, $debug) {
37 37
                         self::setErrorHandler();
38 38
                         try {
39 39
                             if ($debug && class_exists(WhoopsMiddleware::class)) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     private static function setErrorHandler(): void
63 63
     {
64
-        $handler = static function (
64
+        $handler = static function(
65 65
             int $errorNumber,
66 66
             string $errorString,
67 67
             string $errorFile,
Please login to merge, or discard this patch.
src/Middleware/ExceptionLoggerMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
 
31 31
         return new PromiseResponse(resolve($request)
32
-            ->then(function (ServerRequestInterface $request) use ($handler) {
32
+            ->then(function(ServerRequestInterface $request) use ($handler) {
33 33
                 try {
34 34
                     return $handler->handle($request);
35 35
                 } catch (Throwable $exception) {
Please login to merge, or discard this patch.