Test Failed
Pull Request — 2.x.x (#25)
by lee
11:51
created
src/MiddlewarePipeline.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->setCurrentPipeline($requestId);
48 48
 
49 49
         return new PromiseResponse(resolve($request)->then(
50
-            function (ServerRequestInterface $request) {
50
+            function(ServerRequestInterface $request) {
51 51
                 /** @var string $requestId */
52 52
                 $requestId = $request->getAttribute('request_id');
53 53
                 try {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->setCurrentPipeline($requestId);
79 79
 
80 80
         return new PromiseResponse(resolve($request)
81
-            ->then(function (ServerRequestInterface $request) use ($handler) {
81
+            ->then(function(ServerRequestInterface $request) use ($handler) {
82 82
                 /** @var string $requestId */
83 83
                 $requestId = $request->getAttribute('request_id');
84 84
                 try {
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.
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']),
43 43
             new RequestBodyBufferMiddleware($config['buffer_size']),
44 44
             new RequestBodyParserMiddleware(),
45
-            static fn (ServerRequestInterface $request): PromiseInterface => resolve($application->handle($request))
45
+            static fn(ServerRequestInterface $request): PromiseInterface => resolve($application->handle($request))
46 46
         );
47 47
 
48 48
         return $server;
Please login to merge, or discard this patch.
src/DriftKernelAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
         string $rootPath,
41 41
         ?FilesystemInterface $filesystem
42 42
     ) {
43
-        $container = require $rootPath . '/config/container.php';
43
+        $container = require $rootPath.'/config/container.php';
44 44
         assert($container instanceof ContainerInterface);
45 45
         $application = $container->get(Application::class);
46 46
         assert($application instanceof ReactApplication);
47
-        (require $rootPath . '/router/middleware.php')($application, $container);
48
-        (require $rootPath . '/router/routes.php')($application, $container);
47
+        (require $rootPath.'/router/middleware.php')($application, $container);
48
+        (require $rootPath.'/router/routes.php')($application, $container);
49 49
         $this->container = $container;
50 50
         $this->application = $application;
51 51
         $this->serverContext = $serverContext;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         return resolve(new self($serverContext, $mimeTypeChecker, $rootPath, $filesystem))
71
-            ->then(fn (KernelAdapter $adapter): KernelAdapter => $adapter);
71
+            ->then(fn(KernelAdapter $adapter): KernelAdapter => $adapter);
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.