Completed
Push — master ( e1d419...609f6c )
by Marcel
08:23
created
src/Internal/MiddlewareChainResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             [$name],
36 36
             array_filter(
37 37
                 array_unique($groups),
38
-                static function (string $group) use ($name): bool {
38
+                static function(string $group) use ($name): bool {
39 39
                     return $group !== $name;
40 40
                 }
41 41
             )
Please login to merge, or discard this patch.
src/Middlewares/CrashFailsafe.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@
 block discarded – undo
35 35
             error_log($stackTrace = (string) $t);
36 36
 
37 37
             return $this->hide ?
38
-                $this->staticResponse :
39
-                $this->responseFactory->createResponse(500)
38
+                $this->staticResponse : $this->responseFactory->createResponse(500)
40 39
                     ->withHeader('Content-Type', 'text/plain')
41 40
                     ->withBody($this->responseFactory->createStream($stackTrace));
42 41
         }
Please login to merge, or discard this patch.
src/Jelly.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 fn (string $name): Server\MiddlewareInterface => $this->container->get($name),
126 126
                 $middlewareChainNames
127 127
             );
128
-        } catch (ContainerExceptionInterface|\TypeError $e) {
128
+        } catch (ContainerExceptionInterface | \TypeError $e) {
129 129
             throw new \LogicException(message: $e->getMessage(), previous: $e);
130 130
         }
131 131
 
@@ -146,8 +146,7 @@  discard block
 block discarded – undo
146 146
     public function run(): void
147 147
     {
148 148
         $request = $this->container->has(Constants\Settings::SERVER_REQUEST_CREATOR->value) ?
149
-            $this->container->get(Constants\Settings::SERVER_REQUEST_CREATOR->value)->fromGlobals() :
150
-            Internal\ServerRequestPicker::fromGlobals();
149
+            $this->container->get(Constants\Settings::SERVER_REQUEST_CREATOR->value)->fromGlobals() : Internal\ServerRequestPicker::fromGlobals();
151 150
 
152 151
         $response = $this->handle($request);
153 152
 
Please login to merge, or discard this patch.