From 4aa3a51ef026cc23a35ef13ff492a6ef69e85d76 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Wed, 5 Feb 2025 09:52:43 +0000 Subject: [PATCH] chore: refactor module structure --- .../Http/DevKeys/{CreateDevKey.php => Create.php} | 2 +- .../Http/DevKeys/{DeleteDevKey.php => Delete.php} | 2 +- .../Projects/Http/DevKeys/{GetDevKey.php => Get.php} | 2 +- .../Http/DevKeys/{UpdateDevKey.php => Update.php} | 2 +- .../Http/DevKeys/{ListDevKeys.php => XList.php} | 2 +- .../Platform/Modules/Projects/Services/Http.php | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) rename src/Appwrite/Platform/Modules/Projects/Http/DevKeys/{CreateDevKey.php => Create.php} (98%) rename src/Appwrite/Platform/Modules/Projects/Http/DevKeys/{DeleteDevKey.php => Delete.php} (98%) rename src/Appwrite/Platform/Modules/Projects/Http/DevKeys/{GetDevKey.php => Get.php} (98%) rename src/Appwrite/Platform/Modules/Projects/Http/DevKeys/{UpdateDevKey.php => Update.php} (98%) rename src/Appwrite/Platform/Modules/Projects/Http/DevKeys/{ListDevKeys.php => XList.php} (98%) diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/CreateDevKey.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php similarity index 98% rename from src/Appwrite/Platform/Modules/Projects/Http/DevKeys/CreateDevKey.php rename to src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php index 90a8969774..c29515d3b1 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/CreateDevKey.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Create.php @@ -19,7 +19,7 @@ use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; use Utopia\Validator\Text; -class CreateDevKey extends Action +class Create extends Action { use HTTP; public static function getName() diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/DeleteDevKey.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php similarity index 98% rename from src/Appwrite/Platform/Modules/Projects/Http/DevKeys/DeleteDevKey.php rename to src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php index 27b2b83396..4f4a021a75 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/DeleteDevKey.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Delete.php @@ -14,7 +14,7 @@ use Utopia\Database\Validator\UID; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; -class DeleteDevKey extends Action +class Delete extends Action { use HTTP; public static function getName() diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/GetDevKey.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php similarity index 98% rename from src/Appwrite/Platform/Modules/Projects/Http/DevKeys/GetDevKey.php rename to src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php index 5e5960b121..f0cec5370d 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/GetDevKey.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Get.php @@ -14,7 +14,7 @@ use Utopia\Database\Validator\UID; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; -class GetDevKey extends Action +class Get extends Action { use HTTP; public static function getName() diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/UpdateDevKey.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php similarity index 98% rename from src/Appwrite/Platform/Modules/Projects/Http/DevKeys/UpdateDevKey.php rename to src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php index e2601a1693..9a8f488864 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/UpdateDevKey.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/Update.php @@ -16,7 +16,7 @@ use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; use Utopia\Validator\Text; -class UpdateDevKey extends Action +class Update extends Action { use HTTP; public static function getName() diff --git a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/ListDevKeys.php b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php similarity index 98% rename from src/Appwrite/Platform/Modules/Projects/Http/DevKeys/ListDevKeys.php rename to src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php index 267284fa2c..9d86b8bdd0 100644 --- a/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/ListDevKeys.php +++ b/src/Appwrite/Platform/Modules/Projects/Http/DevKeys/XList.php @@ -15,7 +15,7 @@ use Utopia\Database\Validator\UID; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; -class ListDevKeys extends Action +class XList extends Action { use HTTP; public static function getName() diff --git a/src/Appwrite/Platform/Modules/Projects/Services/Http.php b/src/Appwrite/Platform/Modules/Projects/Services/Http.php index a2b8fffa0a..cec8ed6d16 100644 --- a/src/Appwrite/Platform/Modules/Projects/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Projects/Services/Http.php @@ -2,11 +2,11 @@ namespace Appwrite\Platform\Modules\Projects\Services; -use Appwrite\Platform\Modules\Projects\Http\DevKeys\CreateDevKey; -use Appwrite\Platform\Modules\Projects\Http\DevKeys\DeleteDevKey; -use Appwrite\Platform\Modules\Projects\Http\DevKeys\GetDevKey; -use Appwrite\Platform\Modules\Projects\Http\DevKeys\ListDevKeys; -use Appwrite\Platform\Modules\Projects\Http\DevKeys\UpdateDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Create as CreateDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Delete as DeleteDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Get as GetDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\Update as UpdateDevKey; +use Appwrite\Platform\Modules\Projects\Http\DevKeys\XList as ListDevKeys; use Utopia\Platform\Service; class Http extends Service