diff --git a/app/modules/api/Init.php b/app/modules/api/Init.php index c6a92e28..83e11c02 100644 --- a/app/modules/api/Init.php +++ b/app/modules/api/Init.php @@ -137,11 +137,9 @@ final class Init extends ModuleBase /** * Comprobar si es necesario actualizar componentes * - * @throws InitializationException - * @throws DependencyException - * @throws NotFoundException * @throws EnvironmentIsBrokenException * @throws FileException + * @throws InitializationException */ private function checkUpgrade() { diff --git a/app/modules/web/Init.php b/app/modules/web/Init.php index 9a25cda4..40c6fede 100644 --- a/app/modules/web/Init.php +++ b/app/modules/web/Init.php @@ -185,6 +185,8 @@ final class Init extends ModuleBase $this->router->response() ->redirect('index.php?r=install/index') ->send(); + + return; } // Checks if the database is set up @@ -194,6 +196,8 @@ final class Init extends ModuleBase $this->router->response() ->redirect('index.php?r=error/databaseConnection') ->send(); + + return; } // Checks if maintenance mode is turned on @@ -203,6 +207,8 @@ final class Init extends ModuleBase $this->router->response() ->redirect('index.php?r=error/maintenanceError') ->send(); + + return; } // Checks if upgrade is needed @@ -214,6 +220,8 @@ final class Init extends ModuleBase $this->router->response() ->redirect('index.php?r=upgrade/index') ->send(); + + return; } // Checks if the database is set up @@ -223,6 +231,8 @@ final class Init extends ModuleBase $this->router->response() ->redirect('index.php?r=error/databaseError') ->send(); + + return; } // Initialize event handlers