| @@ -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 | ) | 
| @@ -132,10 +132,10 @@ discard block | ||
| 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 | ||
| 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 | |
| @@ -35,13 +35,12 @@ | ||
| 35 | 35 |          try { | 
| 36 | 36 | return $handler->handle($request); | 
| 37 | 37 |          } catch (Throwable $t) { | 
| 38 | - error_log((string)$t); | |
| 38 | + error_log((string) $t); | |
| 39 | 39 | |
| 40 | 40 | return $this->hide ? | 
| 41 | - $this->baseResponse : | |
| 42 | - $this->baseResponse | |
| 41 | + $this->baseResponse : $this->baseResponse | |
| 43 | 42 |                      ->withHeader('Content-Type', 'text/plain') | 
| 44 | - ->withBody($this->streamFactory->createStream((string)$t)); | |
| 43 | + ->withBody($this->streamFactory->createStream((string) $t)); | |
| 45 | 44 | } | 
| 46 | 45 | } | 
| 47 | 46 | } |