diff options
Diffstat (limited to 'lib/private/AppFramework/Middleware/MiddlewareDispatcher.php')
-rw-r--r-- | lib/private/AppFramework/Middleware/MiddlewareDispatcher.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php index 270058dc554..577931b8222 100644 --- a/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php +++ b/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php @@ -116,7 +116,7 @@ class MiddlewareDispatcher { * @throws \Exception the passed in exception if it can't handle it */ public function afterException(Controller $controller, string $methodName, \Exception $exception): Response { - for ($i=$this->middlewareCounter-1; $i>=0; $i--) { + for ($i = $this->middlewareCounter - 1; $i >= 0; $i--) { $middleware = $this->middlewares[$i]; try { return $middleware->afterException($controller, $methodName, $exception); @@ -139,7 +139,7 @@ class MiddlewareDispatcher { * @return Response a Response object */ public function afterController(Controller $controller, string $methodName, Response $response): Response { - for ($i= \count($this->middlewares)-1; $i>=0; $i--) { + for ($i = \count($this->middlewares) - 1; $i >= 0; $i--) { $middleware = $this->middlewares[$i]; $response = $middleware->afterController($controller, $methodName, $response); } @@ -158,7 +158,7 @@ class MiddlewareDispatcher { * @return string the output that should be printed */ public function beforeOutput(Controller $controller, string $methodName, string $output): string { - for ($i= \count($this->middlewares)-1; $i>=0; $i--) { + for ($i = \count($this->middlewares) - 1; $i >= 0; $i--) { $middleware = $this->middlewares[$i]; $output = $middleware->beforeOutput($controller, $methodName, $output); } |