From 412c75ebdd860673b642760ee48f6553a15649c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 5 Feb 2025 12:28:52 +0100 Subject: [PATCH] Formatting fix --- .../Platform/Modules/Functions/Services/Http.php | 2 +- .../Modules/Sites/Http/Deployments/Delete.php | 1 - .../Platform/Modules/Sites/Services/Http.php | 16 ++++++++-------- src/Appwrite/SDK/Method.php | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Functions/Services/Http.php b/src/Appwrite/Platform/Modules/Functions/Services/Http.php index 0da0f63729..6c74182776 100644 --- a/src/Appwrite/Platform/Modules/Functions/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Functions/Services/Http.php @@ -4,8 +4,8 @@ namespace Appwrite\Platform\Modules\Functions\Services; use Appwrite\Platform\Modules\Functions\Http\Deployments\Create as CreateDeployment; use Appwrite\Platform\Modules\Functions\Http\Functions\Create as CreateFunction; -use Appwrite\Platform\Modules\Functions\Http\Functions\XList as ListFunctions; use Appwrite\Platform\Modules\Functions\Http\Functions\Update as UpdateFunction; +use Appwrite\Platform\Modules\Functions\Http\Functions\XList as ListFunctions; use Appwrite\Platform\Modules\Functions\Http\Runtimes\XList as ListRuntimes; use Utopia\Platform\Service; diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php index 575937a68a..29253f453f 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Delete.php @@ -2,7 +2,6 @@ namespace Appwrite\Platform\Modules\Sites\Http\Deployments; -use Appwrite\Event\Delete as DeleteEvent; use Appwrite\Event\Event; use Appwrite\Extend\Exception; use Appwrite\SDK\AuthType; diff --git a/src/Appwrite/Platform/Modules/Sites/Services/Http.php b/src/Appwrite/Platform/Modules/Sites/Services/Http.php index d00a9831b9..619702e761 100644 --- a/src/Appwrite/Platform/Modules/Sites/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Sites/Services/Http.php @@ -2,33 +2,33 @@ namespace Appwrite\Platform\Modules\Sites\Services; -use Appwrite\Platform\Modules\Sites\Http\Deployments\Builds\Update as UpdateBuild; use Appwrite\Platform\Modules\Sites\Http\Deployments\Builds\Create as CreateBuild; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Builds\Download\Get as DownloadBuild; +use Appwrite\Platform\Modules\Sites\Http\Deployments\Builds\Update as UpdateBuild; use Appwrite\Platform\Modules\Sites\Http\Deployments\Create as CreateDeployment; use Appwrite\Platform\Modules\Sites\Http\Deployments\Delete as DeleteDeployment; use Appwrite\Platform\Modules\Sites\Http\Deployments\Download\Get as DownloadDeployment; -use Appwrite\Platform\Modules\Sites\Http\Deployments\Builds\Download\Get as DownloadBuild; use Appwrite\Platform\Modules\Sites\Http\Deployments\Get as GetDeployment; -use Appwrite\Platform\Modules\Sites\Http\Deployments\XList as ListDeployments; use Appwrite\Platform\Modules\Sites\Http\Deployments\Update as UpdateDeployment; +use Appwrite\Platform\Modules\Sites\Http\Deployments\XList as ListDeployments; +use Appwrite\Platform\Modules\Sites\Http\Frameworks\XList as ListFrameworks; use Appwrite\Platform\Modules\Sites\Http\Logs\Delete as DeleteLog; use Appwrite\Platform\Modules\Sites\Http\Logs\Get as GetLog; use Appwrite\Platform\Modules\Sites\Http\Logs\XList as ListLogs; use Appwrite\Platform\Modules\Sites\Http\Sites\Create as CreateSite; use Appwrite\Platform\Modules\Sites\Http\Sites\Delete as DeleteSite; use Appwrite\Platform\Modules\Sites\Http\Sites\Get as GetSite; -use Appwrite\Platform\Modules\Sites\Http\Usage\Get as GetUsage; -use Appwrite\Platform\Modules\Sites\Http\Usage\XList as ListUsage; -use Appwrite\Platform\Modules\Sites\Http\Sites\XList as ListSites; use Appwrite\Platform\Modules\Sites\Http\Sites\Update as UpdateSite; +use Appwrite\Platform\Modules\Sites\Http\Sites\XList as ListSites; use Appwrite\Platform\Modules\Sites\Http\Templates\Get as GetTemplate; use Appwrite\Platform\Modules\Sites\Http\Templates\XList as ListTemplates; -use Appwrite\Platform\Modules\Sites\Http\Frameworks\XList as ListFrameworks; +use Appwrite\Platform\Modules\Sites\Http\Usage\Get as GetUsage; +use Appwrite\Platform\Modules\Sites\Http\Usage\XList as ListUsage; use Appwrite\Platform\Modules\Sites\Http\Variables\Create as CreateVariable; use Appwrite\Platform\Modules\Sites\Http\Variables\Delete as DeleteVariable; use Appwrite\Platform\Modules\Sites\Http\Variables\Get as GetVariable; -use Appwrite\Platform\Modules\Sites\Http\Variables\XList as ListVariables; use Appwrite\Platform\Modules\Sites\Http\Variables\Update as UpdateVariable; +use Appwrite\Platform\Modules\Sites\Http\Variables\XList as ListVariables; use Utopia\Platform\Service; class Http extends Service diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php index 708d5c5dc0..8d85f158cb 100644 --- a/src/Appwrite/SDK/Method.php +++ b/src/Appwrite/SDK/Method.php @@ -87,7 +87,7 @@ class Method return; } - if(\str_ends_with($desc, '.md')) { + if (\str_ends_with($desc, '.md')) { $descPath = $this->getDescriptionFilePath(); if (empty($descPath)) {