From f620b73ba0ccdceb1ec6ed538919260a38d3fd1a Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Thu, 19 Feb 2026 21:16:13 +0530 Subject: [PATCH] format --- .../Modules/Teams/Http/Logs/XList.php | 48 +++++++++---------- .../Modules/Teams/Http/Preferences/Get.php | 38 +++++++-------- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Logs/XList.php b/src/Appwrite/Platform/Modules/Teams/Http/Logs/XList.php index 80203f43d4..486807d5f9 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Logs/XList.php @@ -38,30 +38,30 @@ class XList extends Action ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) ->setHttpPath('/v1/teams/:teamId/logs') ->desc('List team logs') - ->groups(['api', 'teams']) - ->label('scope', 'teams.read') - ->label('sdk', new Method( - namespace: 'teams', - group: 'logs', - name: 'listLogs', - description: '/docs/references/teams/get-team-logs.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_LOG_LIST, - ) - ] - )) - ->param('teamId', '', new UID(), 'Team ID.') - ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) - ->param('total', true, new Boolean(true), 'When set to false, the total count returned will be 0 and will not be calculated.', true) - ->inject('response') - ->inject('dbForProject') - ->inject('locale') - ->inject('geodb') - ->inject('audit') - ->callback($this->action(...)); + ->groups(['api', 'teams']) + ->label('scope', 'teams.read') + ->label('sdk', new Method( + namespace: 'teams', + group: 'logs', + name: 'listLogs', + description: '/docs/references/teams/get-team-logs.md', + auth: [AuthType::ADMIN], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_LOG_LIST, + ) + ] + )) + ->param('teamId', '', new UID(), 'Team ID.') + ->param('queries', [], new Queries([new Limit(), new Offset()]), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset', true) + ->param('total', true, new Boolean(true), 'When set to false, the total count returned will be 0 and will not be calculated.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('locale') + ->inject('geodb') + ->inject('audit') + ->callback($this->action(...)); } public function action(string $teamId, array $queries, bool $includeTotal, Response $response, Database $dbForProject, Locale $locale, Reader $geodb, Audit $audit) diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Preferences/Get.php b/src/Appwrite/Platform/Modules/Teams/Http/Preferences/Get.php index 762e9b84a8..043bc2c64a 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Preferences/Get.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Preferences/Get.php @@ -29,25 +29,25 @@ class Get extends Action ->setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) ->setHttpPath('/v1/teams/:teamId/prefs') ->desc('Get team preferences') - ->groups(['api', 'teams']) - ->label('scope', 'teams.read') - ->label('sdk', new Method( - namespace: 'teams', - group: 'teams', - name: 'getPrefs', - description: '/docs/references/teams/get-team-prefs.md', - auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::JWT], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_PREFERENCES, - ) - ] - )) - ->param('teamId', '', new UID(), 'Team ID.') - ->inject('response') - ->inject('dbForProject') - ->callback($this->action(...)); + ->groups(['api', 'teams']) + ->label('scope', 'teams.read') + ->label('sdk', new Method( + namespace: 'teams', + group: 'teams', + name: 'getPrefs', + description: '/docs/references/teams/get-team-prefs.md', + auth: [AuthType::ADMIN, AuthType::SESSION, AuthType::JWT], + responses: [ + new SDKResponse( + code: Response::STATUS_CODE_OK, + model: Response::MODEL_PREFERENCES, + ) + ] + )) + ->param('teamId', '', new UID(), 'Team ID.') + ->inject('response') + ->inject('dbForProject') + ->callback($this->action(...)); } public function action(string $teamId, Response $response, Database $dbForProject)