diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-01-20 15:26:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 15:26:17 +0100 |
commit | 3f231d68d7066d605f261f652f5263613d56ada4 (patch) | |
tree | e7ee5a3e8b7ab5292d7b8dfdcb024726304d4894 /lib/private/AppFramework/Http/Dispatcher.php | |
parent | 473c546b5c562e19ba8f9d3aef9cd64d2458cda7 (diff) | |
parent | f5c361cf44739058b79f322576a1bad2d8c142d9 (diff) | |
download | nextcloud-server-3f231d68d7066d605f261f652f5263613d56ada4.tar.gz nextcloud-server-3f231d68d7066d605f261f652f5263613d56ada4.zip |
Merge pull request #36271 from nextcloud/fix/fix-codestyle
Fix codestyle using codesniffer
Diffstat (limited to 'lib/private/AppFramework/Http/Dispatcher.php')
-rw-r--r-- | lib/private/AppFramework/Http/Dispatcher.php | 5 |
1 files changed, 1 insertions, 4 deletions
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'); |