diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 81b14b4e14..2db063d75a 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -3,7 +3,6 @@ use Appwrite\Auth\MFA\Type\TOTP; use Appwrite\Auth\Validator\Phone; use Appwrite\Detector\Detector; -use Appwrite\Event\Delete; use Appwrite\Event\Event; use Appwrite\Event\Mail; use Appwrite\Event\Messaging; @@ -11,16 +10,13 @@ use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception; use Appwrite\Network\Validator\Email as EmailValidator; use Appwrite\Network\Validator\Redirect; -use Appwrite\Platform\Workers\Deletes; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Template\Template; use Appwrite\Utopia\Database\Documents\User; -use Appwrite\Utopia\Database\Validator\CustomId; use Appwrite\Utopia\Database\Validator\Queries\Memberships; -use Appwrite\Utopia\Database\Validator\Queries\Teams; use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use libphonenumber\NumberParseException; diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Create.php b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Create.php index 85b46d2347..ae20017e76 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Create.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Create.php @@ -135,4 +135,4 @@ class Create extends Action ->setStatusCode(Response::STATUS_CODE_CREATED) ->dynamic($team, Response::MODEL_TEAM); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Delete.php b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Delete.php index 975f04a10c..0cb7c54a26 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Delete.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Delete.php @@ -96,4 +96,4 @@ class Delete extends Action $response->noContent(); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Get.php b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Get.php index fbdb36a6ab..52a66edf56 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Get.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Get.php @@ -58,4 +58,4 @@ class Get extends Action $response->dynamic($team, Response::MODEL_TEAM); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Name/Update.php b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Name/Update.php index c895f36458..4b058c58e1 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Teams/Name/Update.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Teams/Name/Update.php @@ -73,4 +73,4 @@ class Update extends Action $response->dynamic($team, Response::MODEL_TEAM); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/Teams/Http/Teams/XList.php b/src/Appwrite/Platform/Modules/Teams/Http/Teams/XList.php index 8fd5e23941..2a69580845 100644 --- a/src/Appwrite/Platform/Modules/Teams/Http/Teams/XList.php +++ b/src/Appwrite/Platform/Modules/Teams/Http/Teams/XList.php @@ -101,4 +101,4 @@ class XList extends Action 'total' => $total, ]), Response::MODEL_TEAM_LIST); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Modules/Teams/Services/Http.php b/src/Appwrite/Platform/Modules/Teams/Services/Http.php index 41804c2c83..94ba57a2a5 100644 --- a/src/Appwrite/Platform/Modules/Teams/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Teams/Services/Http.php @@ -2,12 +2,12 @@ namespace Appwrite\Platform\Modules\Teams\Services; -use Utopia\Platform\Service; use Appwrite\Platform\Modules\Teams\Http\Teams\Create as CreateTeam; -use Appwrite\Platform\Modules\Teams\Http\Teams\Get as GetTeam; -use Appwrite\Platform\Modules\Teams\Http\Teams\XList as ListTeams; use Appwrite\Platform\Modules\Teams\Http\Teams\Delete as DeleteTeam; +use Appwrite\Platform\Modules\Teams\Http\Teams\Get as GetTeam; use Appwrite\Platform\Modules\Teams\Http\Teams\Name\Update as UpdateTeamName; +use Appwrite\Platform\Modules\Teams\Http\Teams\XList as ListTeams; +use Utopia\Platform\Service; class Http extends Service { @@ -22,4 +22,4 @@ class Http extends Service $this->addAction(DeleteTeam::getName(), new DeleteTeam()); $this->addAction(UpdateTeamName::getName(), new UpdateTeamName()); } -} \ No newline at end of file +}