@@ -35,7 +35,7 @@ |
||
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 | ) |
@@ -35,8 +35,7 @@ |
||
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 | } |
@@ -125,7 +125,7 @@ discard block |
||
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 |
||
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 |