From 7ca37363d277c98abb5b0da8e760097fd7c6f8a7 Mon Sep 17 00:00:00 2001 From: Divine Niiquaye Ibok Date: Sun, 29 May 2022 14:28:01 +0000 Subject: [PATCH] Fixed coding standard issues --- src/Generator/GeneratedUri.php | 1 - src/Handlers/RouteHandler.php | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 ); }