From 27932854c8af8da5b72b425a12a52cd5c910ed10 Mon Sep 17 00:00:00 2001 From: Atharva Deosthale Date: Fri, 21 Nov 2025 18:24:16 +0530 Subject: [PATCH] format --- app/controllers/api/account.php | 3 --- app/controllers/api/projects.php | 2 +- app/controllers/api/users.php | 2 +- app/controllers/general.php | 2 +- .../Platform/Modules/Payments/Http/Subscriptions/Get.php | 4 ++-- .../Modules/Payments/Http/Webhooks/Provider/Create.php | 5 ++--- 6 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index eebb2102ec..b7959bb6a9 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2,7 +2,6 @@ use Ahc\Jwt\JWT; use Appwrite\Auth\Auth; -use Appwrite\Auth\Key; use Appwrite\Auth\MFA\Challenge; use Appwrite\Auth\MFA\Type; use Appwrite\Auth\MFA\Type\TOTP; @@ -65,7 +64,6 @@ use Utopia\System\System; use Utopia\Validator\ArrayList; use Utopia\Validator\Assoc; use Utopia\Validator\Boolean; -use Utopia\Validator\Integer; use Utopia\Validator\Text; use Utopia\Validator\URL; use Utopia\Validator\WhiteList; @@ -5407,4 +5405,3 @@ App::delete('/v1/account/identities/:identityId') return $response->noContent(); }); - diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 89fd93c5a9..760a4f23a6 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -2662,4 +2662,4 @@ App::patch('/v1/projects/:projectId/auth/session-invalidation') ->setAttribute('auths', $auths)); $response->dynamic($project, Response::MODEL_PROJECT); - }); \ No newline at end of file + }); diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index abfc4fdf8c..a8570c3079 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -2709,4 +2709,4 @@ App::get('/v1/users/usage') 'users' => $usage[$metrics[0]]['data'], 'sessions' => $usage[$metrics[1]]['data'], ]), Response::MODEL_USAGE_USERS); - }); \ No newline at end of file + }); diff --git a/app/controllers/general.php b/app/controllers/general.php index e356b74a99..e0435cd499 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1644,4 +1644,4 @@ if (!empty(Method::getErrors())) { // Modules $platform = new Appwrite(); -$platform->init(Service::TYPE_HTTP); \ No newline at end of file +$platform->init(Service::TYPE_HTTP); diff --git a/src/Appwrite/Platform/Modules/Payments/Http/Subscriptions/Get.php b/src/Appwrite/Platform/Modules/Payments/Http/Subscriptions/Get.php index 9430767439..2ae130c42d 100644 --- a/src/Appwrite/Platform/Modules/Payments/Http/Subscriptions/Get.php +++ b/src/Appwrite/Platform/Modules/Payments/Http/Subscriptions/Get.php @@ -72,7 +72,7 @@ class Get extends Base if ($actorId === '' || $actorId === ':actorId') { $actorId = ''; } - + $actorType = strtolower($actorType); if (!\in_array($actorType, ['user', 'team'], true)) { @@ -222,7 +222,7 @@ class Get extends Base $planDataObj = new \stdClass(); } - // Convert subscription data to plain array/object + // Convert subscription data to plain array/object $subscriptionData = new \stdClass(); if (!$subscriptionDoc->isEmpty()) { $subscriptionData = (object) [ diff --git a/src/Appwrite/Platform/Modules/Payments/Http/Webhooks/Provider/Create.php b/src/Appwrite/Platform/Modules/Payments/Http/Webhooks/Provider/Create.php index 4d287ce809..8e9f1693b8 100644 --- a/src/Appwrite/Platform/Modules/Payments/Http/Webhooks/Provider/Create.php +++ b/src/Appwrite/Platform/Modules/Payments/Http/Webhooks/Provider/Create.php @@ -2,17 +2,16 @@ namespace Appwrite\Platform\Modules\Payments\Http\Webhooks\Provider; +use Appwrite\Event\Event; use Appwrite\Payments\Provider\Registry; use Appwrite\Platform\Modules\Compute\Base; use Appwrite\SDK\Method; use Appwrite\Utopia\Response; +use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\UID; -use Appwrite\Event\Event; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; use Utopia\Swoole\Request; -use Utopia\Database\Document; -use Utopia\Database\Validator\Authorization; class Create extends Base {