diff --git a/src/Generator/GeneratedUri.php b/src/Generator/GeneratedUri.php index cb50843..d125299 100644 --- a/src/Generator/GeneratedUri.php +++ b/src/Generator/GeneratedUri.php @@ -139,7 +139,6 @@ public function withQuery(array $queryParams = []): self if (!empty($queryString)) { $this->pathInfo .= '?' . \strtr($queryString, self::QUERY_DECODED); } - } return $this; diff --git a/src/Handlers/RouteHandler.php b/src/Handlers/RouteHandler.php index b908d2e..64c1cdd 100644 --- a/src/Handlers/RouteHandler.php +++ b/src/Handlers/RouteHandler.php @@ -65,8 +65,10 @@ public function handle(ServerRequestInterface $request): ResponseInterface if (!$notFoundResponse instanceof ResponseInterface) { throw new RouteNotFoundException( - \sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', - $request->getUri()->getPath()), + \sprintf( + 'Unable to find the controller for path "%s". The route is wrongly configured.', + $request->getUri()->getPath() + ), 404 ); }