From f5c361cf44739058b79f322576a1bad2d8c142d9 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Fri, 20 Jan 2023 11:45:08 +0100 Subject: composer run cs:fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/AppFramework/Http/Dispatcher.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/private/AppFramework/Http/Dispatcher.php') diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php index cc288edc966..b4b03574d56 100644 --- a/lib/private/AppFramework/Http/Dispatcher.php +++ b/lib/private/AppFramework/Http/Dispatcher.php @@ -49,7 +49,6 @@ use Psr\Log\LoggerInterface; * Class to dispatch the request to the middleware dispatcher */ class Dispatcher { - /** @var MiddlewareDispatcher */ private $middlewareDispatcher; @@ -169,7 +168,7 @@ class Dispatcher { } catch (\Throwable $throwable) { $exception = new \Exception($throwable->getMessage() . ' in file \'' . $throwable->getFile() . '\' line ' . $throwable->getLine(), $throwable->getCode(), $throwable); $response = $this->middlewareDispatcher->afterException( - $controller, $methodName, $exception); + $controller, $methodName, $exception); } $response = $this->middlewareDispatcher->afterController( @@ -202,7 +201,6 @@ class Dispatcher { $types = ['int', 'integer', 'bool', 'boolean', 'float', 'double']; foreach ($this->reflector->getParameters() as $param => $default) { - // try to get the parameter from the request object and cast // it to the type annotated in the @param annotation $value = $this->request->getParam($param, $default); @@ -234,7 +232,6 @@ class Dispatcher { // format response if ($response instanceof DataResponse || !($response instanceof Response)) { - // get format from the url format or request format parameter $format = $this->request->getParam('format'); -- cgit v1.2.3