Passed
Pull Request — 2.0.x (#9)
by Koldo
05:09 queued 02:31
created
src/ServerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             new LimitConcurrentRequestsMiddleware(($config['max_concurrency']) ?? 100),
43 43
             new RequestBodyBufferMiddleware($config['buffer_size'] ?? 4 * 1024 * 1024), // 4 MiB
44 44
             new RequestBodyParserMiddleware(),
45
-            static fn (ServerRequestInterface $request): ResponseInterface => $application->handle($request)
45
+            static fn(ServerRequestInterface $request): ResponseInterface => $application->handle($request)
46 46
         );
47 47
 
48 48
         return $server;
Please login to merge, or discard this patch.
src/ReactApplication.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
     {
88 88
         return new PromiseResponse(resolve($request)
89 89
             ->then(
90
-                function (ServerRequestInterface $request) use ($handler): PromiseInterface {
90
+                function(ServerRequestInterface $request) use ($handler): PromiseInterface {
91 91
                     $response = new PromiseResponse(
92 92
                         resolve($request)
93
-                            ->then(static function (ServerRequestInterface $request): ServerRequestInterface {
93
+                            ->then(static function(ServerRequestInterface $request): ServerRequestInterface {
94 94
                                 return $request->withAttribute('request_id', Uuid::uuid4()->toString());
95 95
                             })
96
-                            ->then(function (ServerRequestInterface $request) use ($handler): ResponseInterface {
96
+                            ->then(function(ServerRequestInterface $request) use ($handler): ResponseInterface {
97 97
                                 try {
98 98
                                     return $this->pipeline->process($request, $handler);
99 99
                                 } catch (Throwable $exception) {
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
     {
112 112
         return new PromiseResponse(resolve($request)
113 113
             ->then(
114
-                function (ServerRequestInterface $request): PromiseInterface {
114
+                function(ServerRequestInterface $request): PromiseInterface {
115 115
                     $response = new PromiseResponse(
116 116
                         resolve($request)
117
-                            ->then(static function (ServerRequestInterface $request): ServerRequestInterface {
117
+                            ->then(static function(ServerRequestInterface $request): ServerRequestInterface {
118 118
                                 return $request->withAttribute('request_id', Uuid::uuid4()->toString());
119 119
                             })
120
-                            ->then(function (ServerRequestInterface $request): ResponseInterface {
120
+                            ->then(function(ServerRequestInterface $request): ResponseInterface {
121 121
                                 try {
122 122
                                     return $this->pipeline->handle($request);
123 123
                                 } catch (Throwable $exception) {
Please login to merge, or discard this patch.