From 5f58e1da90900ddf3515027ba32fd36057cff2d7 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 26 Feb 2026 22:13:46 +1300 Subject: [PATCH] (fix): Fix syntax error and lint issues in Upgrade.php --- src/Appwrite/Platform/Tasks/Upgrade.php | 55 ++++++++++++------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/Upgrade.php b/src/Appwrite/Platform/Tasks/Upgrade.php index cb25ee0291..e50cde9440 100644 --- a/src/Appwrite/Platform/Tasks/Upgrade.php +++ b/src/Appwrite/Platform/Tasks/Upgrade.php @@ -5,7 +5,6 @@ namespace Appwrite\Platform\Tasks; use Appwrite\Docker\Compose; use Appwrite\Docker\Env; use Utopia\CLI\Console; -use Utopia\System\System; use Utopia\Validator\Boolean; use Utopia\Validator\Text; @@ -35,14 +34,14 @@ class Upgrade extends Install } public function action( - string $httpPort, - string $httpsPort, - string $organization, - string $image, - string $interactive, - bool $noStart, - string $database - ): void { + string $httpPort, + string $httpsPort, + string $organization, + string $image, + string $interactive, + bool $noStart, + string $database + ): void { $isLocalInstall = $this->isLocalInstall(); $this->applyLocalPaths($isLocalInstall, true); @@ -79,31 +78,31 @@ class Upgrade extends Install } if ($database === null) { - throw new \Exception('Database type not found, can not updgrade. Ensure `_APP_DB_ADAPTER` is set in your environment.') + throw new \Exception('Database type not found, can not updgrade. Ensure `_APP_DB_ADAPTER` is set in your environment.'); } parent::action($httpPort, $httpsPort, $organization, $image, $interactive, $noStart, $database); } protected function startWebServer( - string $defaultHttpPort, - string $defaultHttpsPort, - string $organization, - string $image, - bool $noStart, - array $vars, - bool $isUpgrade = false, - ?string $lockedDatabase = null - ): void { + string $defaultHttpPort, + string $defaultHttpsPort, + string $organization, + string $image, + bool $noStart, + array $vars, + bool $isUpgrade = false, + ?string $lockedDatabase = null + ): void { parent::startWebServer( - $defaultHttpPort, - $defaultHttpsPort, - $organization, - $image, - $noStart, - $vars, - true, - $this->lockedDatabase - ); + $defaultHttpPort, + $defaultHttpsPort, + $organization, + $image, + $noStart, + $vars, + true, + $this->lockedDatabase + ); } }