Completed
Push — master ( d7663d...9bb036 )
by Marcel
44s
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/Jelly.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,10 +132,10 @@  discard block
 block discarded – undo
132 132
 
133 133
         try {
134 134
             $handler = Internal\Assert::isRequestHandler($this->container->get($handlerName));
135
-            $middlewareChain = array_map(function (string $name): Server\MiddlewareInterface {
135
+            $middlewareChain = array_map(function(string $name): Server\MiddlewareInterface {
136 136
                 return $this->container->get($name);
137 137
             }, $middlewareChainNames);
138
-        } catch (ContainerExceptionInterface|TypeError $e) {
138
+        } catch (ContainerExceptionInterface | TypeError $e) {
139 139
             throw new LogicException(message: $e->getMessage(), previous: $e);
140 140
         }
141 141
 
@@ -156,8 +156,7 @@  discard block
 block discarded – undo
156 156
     public function run(): void
157 157
     {
158 158
         $request = $this->container->has(Constants\Settings::SERVER_REQUEST_CREATOR->value) ?
159
-            $this->container->get(Constants\Settings::SERVER_REQUEST_CREATOR->value)->fromGlobals() :
160
-            Internal\ServerRequestPicker::fromGlobals();
159
+            $this->container->get(Constants\Settings::SERVER_REQUEST_CREATOR->value)->fromGlobals() : Internal\ServerRequestPicker::fromGlobals();
161 160
 
162 161
         $response = $this->handle($request);
163 162
 
Please login to merge, or discard this patch.
src/Middlewares/CrashFailsafe.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,11 +35,10 @@
 block discarded – undo
35 35
         try {
36 36
             return $handler->handle($request);
37 37
         } catch (Throwable $t) {
38
-            error_log($stackTrace = (string)$t);
38
+            error_log($stackTrace = (string) $t);
39 39
 
40 40
             return $this->hide ?
41
-                $this->staticResponse :
42
-                $this->responseFactory->createResponse(500)
41
+                $this->staticResponse : $this->responseFactory->createResponse(500)
43 42
                     ->withHeader('Content-Type', 'text/plain')
44 43
                     ->withBody($this->responseFactory->createStream($stackTrace));
45 44
         }
Please login to merge, or discard this patch.