diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index 527c52908..6a9f62cc4 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -136,7 +136,7 @@ class Response extends SwooleResponse /** * Response constructor. - * + * * @param float $time */ public function __construct(SwooleHTTPResponse $response) @@ -220,7 +220,7 @@ class Response extends SwooleResponse /** * Set Model Object - * + * * @return self */ public function setModel(Model $instance) @@ -232,7 +232,7 @@ class Response extends SwooleResponse /** * Get Model Object - * + * * @return Model */ public function getModel(string $key): Model @@ -246,7 +246,7 @@ class Response extends SwooleResponse /** * Get Models List - * + * * @return Model[] */ public function getModels(): array @@ -257,10 +257,10 @@ class Response extends SwooleResponse /** * Validate response objects and outputs * the response according to given format type - * + * * @param Document $document * @param string $model - * + * * return void */ public function dynamic(Document $document, string $model): void @@ -268,7 +268,7 @@ class Response extends SwooleResponse $output = $this->output($document, $model); // If filter is set, parse the output - if(self::isFilter()){ + if (self::isFilter()) { $output = self::getFilter()->parse($output, $model); } @@ -277,10 +277,10 @@ class Response extends SwooleResponse /** * Generate valid response object from document data - * + * * @param Document $document * @param string $model - * + * * return array */ public function output(Document $document, string $model): array @@ -362,32 +362,32 @@ class Response extends SwooleResponse /** * Function to set a response filter - * + * * @param $filter the response filter to set - * + * * @return void */ - public static function setFilter(?Filter $filter) + public static function setFilter(?Filter $filter) { self::$filter = $filter; } /** * Return the currently set filter - * + * * @return Filter */ - public static function getFilter(): ?Filter + public static function getFilter(): ?Filter { return self::$filter; } /** * Check if a filter has been set - * + * * @return bool */ - public static function isFilter(): bool + public static function isFilter(): bool { return self::$filter != null; } diff --git a/src/Appwrite/Utopia/Response/Filter.php b/src/Appwrite/Utopia/Response/Filter.php index 6974c4ba8..5446dff92 100644 --- a/src/Appwrite/Utopia/Response/Filter.php +++ b/src/Appwrite/Utopia/Response/Filter.php @@ -2,7 +2,8 @@ namespace Appwrite\Utopia\Response; -abstract class Filter { +abstract class Filter +{ /** * Parse the content to another format. @@ -12,6 +13,5 @@ abstract class Filter { * * @return array */ - abstract function parse(array $content, string $model): array; - -} \ No newline at end of file + abstract public function parse(array $content, string $model): array; +} diff --git a/src/Appwrite/Utopia/Response/Filters/V06.php b/src/Appwrite/Utopia/Response/Filters/V06.php index d3d5f0329..592f1fd14 100644 --- a/src/Appwrite/Utopia/Response/Filters/V06.php +++ b/src/Appwrite/Utopia/Response/Filters/V06.php @@ -12,17 +12,18 @@ use Exception; use Utopia\Config\Config; use Utopia\Locale\Locale as Locale; -class V06 extends Filter { +class V06 extends Filter +{ // Convert 0.7 Data format to 0.6 format - public function parse(array $content, string $model): array { - + public function parse(array $content, string $model): array + { $parsedResponse = []; - switch($model) { + switch ($model) { case Response::MODEL_DOCUMENT_LIST: - $parsedResponse = $content; + $parsedResponse = $content; break; case Response::MODEL_COLLECTION: @@ -33,15 +34,15 @@ class V06 extends Filter { $parsedResponse = $this->parseCollectionList($content); break; - case Response::MODEL_FILE : + case Response::MODEL_FILE: $parsedResponse = $this->parseFile($content); break; - case Response::MODEL_FILE_LIST : + case Response::MODEL_FILE_LIST: $parsedResponse = $content; break; - case Response::MODEL_USER : + case Response::MODEL_USER: $parsedResponse = $this->parseUser($content); break; @@ -65,20 +66,20 @@ class V06 extends Filter { $parsedResponse = $content['memberships']; break; - case Response::MODEL_SESSION : + case Response::MODEL_SESSION: $parsedResponse = $this->parseSession($content); break; - case Response::MODEL_SESSION_LIST : + case Response::MODEL_SESSION_LIST: $parsedResponse = $this->parseSessionList($content); break; - case Response::MODEL_LOG_LIST : + case Response::MODEL_LOG_LIST: $parsedResponse = $this->parseLogList($content); break; case Response::MODEL_TOKEN: - $parsedResponse = $this->parseToken($content); + $parsedResponse = $this->parseToken($content); break; case Response::MODEL_LOCALE: @@ -105,9 +106,9 @@ class V06 extends Filter { $parsedResponse = $content; break; - case Response::MODEL_ANY : - case Response::MODEL_DOCUMENT : - case Response::MODEL_PREFERENCES : + case Response::MODEL_ANY: + case Response::MODEL_DOCUMENT: + case Response::MODEL_PREFERENCES: $parsedResponse = $content; break; @@ -120,7 +121,7 @@ class V06 extends Filter { private function parseCollectionList(array $content) { - foreach($content['collections'] as $key => $collection){ + foreach ($content['collections'] as $key => $collection) { $content['collections'][$key] = $this->parseCollection($collection); } return $content; @@ -149,12 +150,12 @@ class V06 extends Filter { return $content; } - private function parseCurrencyList(array $content) + private function parseCurrencyList(array $content) { $content['locations'] = []; $currencies = $content['currencies']; $parsedResponse = []; - foreach($currencies as $currency) { + foreach ($currencies as $currency) { $currency['locations'] = []; $parsedResponse[] = $currency; } @@ -166,7 +167,7 @@ class V06 extends Filter { { $continents = $content['continents']; $parsedResponse = []; - foreach($continents as $continent) { + foreach ($continents as $continent) { $parsedResponse[$continent['code']] = $continent['name']; } $content['continents'] = $parsedResponse; @@ -177,25 +178,25 @@ class V06 extends Filter { { $phones = $content['phones']; $parsedResponse = []; - foreach($phones as $phone) { + foreach ($phones as $phone) { $parsedResponse[$phone['countryCode']] = $phone['code']; } $content['phones'] = $parsedResponse; return $content; } - private function parseCountryList(array $content) + private function parseCountryList(array $content) { $countries = $content['countries']; $parsedResponse = []; - foreach($countries as $country) { + foreach ($countries as $country) { $parsedResponse[$country['code']] = $country['name']; } $content['countries'] = $parsedResponse; return $content; } - private function parseLocale(array $content) + private function parseLocale(array $content) { $content['ip'] = $content['ip'] ?? ''; $content['countryCode'] = $content['countryCode'] ?? '--'; @@ -215,7 +216,7 @@ class V06 extends Filter { private function parseTeam(array $content) { - $content['$collection'] = Database::SYSTEM_COLLECTION_TEAMS; + $content['$collection'] = Database::SYSTEM_COLLECTION_TEAMS; $content['$permissions'] = []; return $content; } @@ -224,7 +225,7 @@ class V06 extends Filter { { $teams = $content['teams']; $parsedResponse = []; - foreach($teams as $team) { + foreach ($teams as $team) { $parsedResponse[] = $this->parseTeam($team); } $content['teams'] = $parsedResponse; @@ -235,7 +236,7 @@ class V06 extends Filter { { $logs = $content['logs']; $parsedResponse = []; - foreach($logs as $log) { + foreach ($logs as $log) { $parsedResponse[] = [ 'brand' => $log['deviceBrand'], 'device' => $log['deviceName'], @@ -245,7 +246,7 @@ class V06 extends Filter { 'time' => $log['time'], 'geo' => [ 'isoCode' => empty($log['countryCode']) ? '---' : $log['countryCode'] , - 'country' => empty($log['countryName'] ) ? Locale::getText('locale.country.unknown') : $log['countryName'] + 'country' => empty($log['countryName']) ? Locale::getText('locale.country.unknown') : $log['countryName'] ], 'OS' => [ 'name' => $log['osName'], @@ -270,7 +271,7 @@ class V06 extends Filter { { $sessions = $content['sessions']; $parsedResponse = []; - foreach($sessions as $session) { + foreach ($sessions as $session) { $parsedResponse[] = [ '$id' => $session['$id'], 'brand' => $session['deviceBrand'], @@ -280,7 +281,7 @@ class V06 extends Filter { 'model' => $session['deviceModel'], 'geo' => [ 'isoCode' => empty($session['countryCode']) ? '---' : $session['countryCode'] , - 'country' => empty($session['countryName'] ) ? Locale::getText('locale.country.unknown') : $session['countryName'] + 'country' => empty($session['countryName']) ? Locale::getText('locale.country.unknown') : $session['countryName'] ], 'OS' => [ 'name' => $session['osName'], @@ -301,8 +302,8 @@ class V06 extends Filter { return $content; } - private function parseSession(array $content) - { + private function parseSession(array $content) + { $content['type'] = Auth::TOKEN_TYPE_LOGIN; return $content; } @@ -311,7 +312,7 @@ class V06 extends Filter { { $users = $content['users']; $parsedResponse = []; - foreach($users as $user) { + foreach ($users as $user) { $parsedResponse[] = $this->parseUser($user); } $content['users'] = $parsedResponse; @@ -327,8 +328,8 @@ class V06 extends Filter { $content['oauth2'.ucfirst($key)] = ''; $content['oauth2'.ucfirst($key).'AccessToken'] = ''; } - $content['status'] = empty($content['status']) ? 0 : $content['status']; + $content['status'] = empty($content['status']) ? 0 : $content['status']; $content['roles'] = Authorization::getRoles() ?? []; return $content; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Filters/V07.php b/src/Appwrite/Utopia/Response/Filters/V07.php index 86465a417..7ab083857 100644 --- a/src/Appwrite/Utopia/Response/Filters/V07.php +++ b/src/Appwrite/Utopia/Response/Filters/V07.php @@ -5,19 +5,25 @@ namespace Appwrite\Utopia\Response\Filters; use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Filter; use Exception; -class V07 extends Filter { + +class V07 extends Filter +{ // Convert 0.8 Data format to 0.7 format - public function parse(array $content, string $model): array { - + public function parse(array $content, string $model): array + { $parsedResponse = []; - switch($model) { + switch ($model) { case Response::MODEL_DOCUMENT_LIST: /** ANY was replaced by DOCUMENT in 0.8.x but this is backward compatible with 0.7.x */ + // no break case Response::MODEL_DOCUMENT: /** ANY was replaced by DOCUMENT in 0.8.x but this is backward compatible with 0.7.x */ + // no break case Response::MODEL_USER_LIST: /** [FIELDS ADDED in 0.8.x] passwordUpdate */ + // no break case Response::MODEL_USER: /** [FIELDS ADDED in 0.8.x] passwordUpdate */ + // no break case Response::MODEL_COLLECTION_LIST: case Response::MODEL_COLLECTION: case Response::MODEL_FILE_LIST: @@ -31,7 +37,9 @@ class V07 extends Filter { case Response::MODEL_MEMBERSHIP_LIST: case Response::MODEL_MEMBERSHIP: case Response::MODEL_SESSION_LIST: /** [FIELDS ADDED in 0.8.x] provider, providerUid, providerToken */ + // no break case Response::MODEL_SESSION: /** [FIELDS ADDED in 0.8.x] provider, providerUid, providerToken */ + // no break case Response::MODEL_JWT: case Response::MODEL_LOG: case Response::MODEL_LOG_LIST: @@ -63,10 +71,11 @@ class V07 extends Filter { case Response::MODEL_MOCK: case Response::MODEL_ANY: case Response::MODEL_PREFERENCES: /** ANY was replaced by PREFERENCES in 0.8.x but this is backward compatible with 0.7.x */ + // no break case Response::MODEL_NONE: case Response::MODEL_ERROR: case Response::MODEL_ERROR_DEV: - $parsedResponse = $content; + $parsedResponse = $content; break; case Response::MODEL_FUNCTION_LIST: /** Function property env was renamed to runtime in 0.9.x */ $parsedResponse = $this->parseFunctionList($content); @@ -81,20 +90,21 @@ class V07 extends Filter { return $parsedResponse; } - protected function parseFunction(array $content) { + protected function parseFunction(array $content) + { $content['env'] = $content['runtime']; unset($content['runtime']); return $content; } - protected function parseFunctionList(array $content){ + protected function parseFunctionList(array $content) + { $functions = $content['functions']; $parsedResponse = []; - foreach($functions as $function) { + foreach ($functions as $function) { $parsedResponse[] = $this->parseFunction($function); } $content['functions'] = $parsedResponse; return $content; } - -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Filters/V08.php b/src/Appwrite/Utopia/Response/Filters/V08.php index 32d4cdc83..2527562f8 100644 --- a/src/Appwrite/Utopia/Response/Filters/V08.php +++ b/src/Appwrite/Utopia/Response/Filters/V08.php @@ -6,18 +6,18 @@ use Appwrite\Utopia\Response; use Appwrite\Utopia\Response\Filter; use Exception; - -class V08 extends Filter { +class V08 extends Filter +{ // Convert 0.9 Data format to 0.8 format - public function parse(array $content, string $model): array { - + public function parse(array $content, string $model): array + { $parsedResponse = []; - switch($model) { + switch ($model) { - case Response::MODEL_DOCUMENT_LIST: - case Response::MODEL_DOCUMENT: + case Response::MODEL_DOCUMENT_LIST: + case Response::MODEL_DOCUMENT: case Response::MODEL_USER_LIST: case Response::MODEL_USER: case Response::MODEL_COLLECTION_LIST: @@ -68,7 +68,7 @@ class V08 extends Filter { case Response::MODEL_NONE: case Response::MODEL_ERROR: case Response::MODEL_ERROR_DEV: - $parsedResponse = $content; + $parsedResponse = $content; break; case Response::MODEL_FUNCTION_LIST: /** Function property env was renamed to runtime in 0.9.x */ $parsedResponse = $this->parseFunctionList($content); @@ -83,19 +83,21 @@ class V08 extends Filter { return $parsedResponse; } - protected function parseFunction(array $content) { + protected function parseFunction(array $content) + { $content['env'] = $content['runtime']; unset($content['runtime']); return $content; } - protected function parseFunctionList(array $content){ + protected function parseFunctionList(array $content) + { $functions = $content['functions']; $parsedResponse = []; - foreach($functions as $function) { + foreach ($functions as $function) { $parsedResponse[] = $this->parseFunction($function); } $content['functions'] = $parsedResponse; return $content; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index af71a5759..9b91c23e8 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -32,21 +32,21 @@ abstract class Model /** * Get Name - * + * * @return string */ abstract public function getName():string; /** * Get Collection - * + * * @return string */ abstract public function getType():string; /** * Get Rules - * + * * @return array */ public function getRules(): array @@ -75,8 +75,8 @@ abstract class Model { $list = []; - foreach($this->rules as $key => $rule) { - if(isset($rule['require']) || $rule['require']) { + foreach ($this->rules as $key => $rule) { + if (isset($rule['require']) || $rule['require']) { $list[] = $key; } } @@ -86,9 +86,9 @@ abstract class Model /** * Is None - * + * * Use to check if response is empty - * + * * @return bool */ public function isNone(): bool @@ -98,9 +98,9 @@ abstract class Model /** * Is Any - * + * * Use to check if response is a wildcard - * + * * @return bool */ public function isAny(): bool @@ -110,13 +110,13 @@ abstract class Model /** * Is Public - * + * * Should this model be publicly available in docs and spec files? - * + * * @return bool */ public function isPublic(): bool { return $this->public; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Any.php b/src/Appwrite/Utopia/Response/Model/Any.php index 1a5defec6..1613f0728 100644 --- a/src/Appwrite/Utopia/Response/Model/Any.php +++ b/src/Appwrite/Utopia/Response/Model/Any.php @@ -14,7 +14,7 @@ class Any extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -24,11 +24,11 @@ class Any extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_ANY; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/BaseList.php b/src/Appwrite/Utopia/Response/Model/BaseList.php index a16cb95df..8328853c6 100644 --- a/src/Appwrite/Utopia/Response/Model/BaseList.php +++ b/src/Appwrite/Utopia/Response/Model/BaseList.php @@ -49,7 +49,7 @@ class BaseList extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -59,11 +59,11 @@ class BaseList extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return $this->type; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Collection.php b/src/Appwrite/Utopia/Response/Model/Collection.php index 9b1f184b9..a8acb4768 100644 --- a/src/Appwrite/Utopia/Response/Model/Collection.php +++ b/src/Appwrite/Utopia/Response/Model/Collection.php @@ -52,7 +52,7 @@ class Collection extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -62,11 +62,11 @@ class Collection extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_COLLECTION; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Continent.php b/src/Appwrite/Utopia/Response/Model/Continent.php index 82948b646..b7311d0d4 100644 --- a/src/Appwrite/Utopia/Response/Model/Continent.php +++ b/src/Appwrite/Utopia/Response/Model/Continent.php @@ -27,7 +27,7 @@ class Continent extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -37,11 +37,11 @@ class Continent extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_CONTINENT; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Country.php b/src/Appwrite/Utopia/Response/Model/Country.php index 85ed0a2d5..3c9eb6b6e 100644 --- a/src/Appwrite/Utopia/Response/Model/Country.php +++ b/src/Appwrite/Utopia/Response/Model/Country.php @@ -27,7 +27,7 @@ class Country extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -37,11 +37,11 @@ class Country extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_COUNTRY; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Currency.php b/src/Appwrite/Utopia/Response/Model/Currency.php index e17ab3fb8..10d0d77ff 100644 --- a/src/Appwrite/Utopia/Response/Model/Currency.php +++ b/src/Appwrite/Utopia/Response/Model/Currency.php @@ -57,7 +57,7 @@ class Currency extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -67,11 +67,11 @@ class Currency extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_CURRENCY; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Document.php b/src/Appwrite/Utopia/Response/Model/Document.php index a8a9f8097..b69fe5b15 100644 --- a/src/Appwrite/Utopia/Response/Model/Document.php +++ b/src/Appwrite/Utopia/Response/Model/Document.php @@ -8,7 +8,7 @@ class Document extends Any { /** * Get Name - * + * * @return string */ public function getName(): string @@ -18,7 +18,7 @@ class Document extends Any /** * Get Collection - * + * * @return string */ public function getType(): string diff --git a/src/Appwrite/Utopia/Response/Model/Domain.php b/src/Appwrite/Utopia/Response/Model/Domain.php index fb5631287..20ee9b853 100644 --- a/src/Appwrite/Utopia/Response/Model/Domain.php +++ b/src/Appwrite/Utopia/Response/Model/Domain.php @@ -56,7 +56,7 @@ class Domain extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -66,11 +66,11 @@ class Domain extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_DOMAIN; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Error.php b/src/Appwrite/Utopia/Response/Model/Error.php index 48e30cd81..118e405d8 100644 --- a/src/Appwrite/Utopia/Response/Model/Error.php +++ b/src/Appwrite/Utopia/Response/Model/Error.php @@ -33,7 +33,7 @@ class Error extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -43,11 +43,11 @@ class Error extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_ERROR; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/ErrorDev.php b/src/Appwrite/Utopia/Response/Model/ErrorDev.php index 2e0bf88da..779314e59 100644 --- a/src/Appwrite/Utopia/Response/Model/ErrorDev.php +++ b/src/Appwrite/Utopia/Response/Model/ErrorDev.php @@ -40,11 +40,11 @@ class ErrorDev extends Error /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_ERROR_DEV; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Execution.php b/src/Appwrite/Utopia/Response/Model/Execution.php index 9d85d0cfe..7f3fe1924 100644 --- a/src/Appwrite/Utopia/Response/Model/Execution.php +++ b/src/Appwrite/Utopia/Response/Model/Execution.php @@ -76,7 +76,7 @@ class Execution extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -86,11 +86,11 @@ class Execution extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_EXECUTION; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/File.php b/src/Appwrite/Utopia/Response/Model/File.php index 5d0d51153..345093dc2 100644 --- a/src/Appwrite/Utopia/Response/Model/File.php +++ b/src/Appwrite/Utopia/Response/Model/File.php @@ -58,7 +58,7 @@ class File extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -68,11 +68,11 @@ class File extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_FILE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Func.php b/src/Appwrite/Utopia/Response/Model/Func.php index 6d5bf8c01..cb869a6b5 100644 --- a/src/Appwrite/Utopia/Response/Model/Func.php +++ b/src/Appwrite/Utopia/Response/Model/Func.php @@ -101,7 +101,7 @@ class Func extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -111,11 +111,11 @@ class Func extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_FUNCTION; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/JWT.php b/src/Appwrite/Utopia/Response/Model/JWT.php index 67aa0f4d3..b30f51702 100644 --- a/src/Appwrite/Utopia/Response/Model/JWT.php +++ b/src/Appwrite/Utopia/Response/Model/JWT.php @@ -20,7 +20,7 @@ class JWT extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -30,11 +30,11 @@ class JWT extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_JWT; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Key.php b/src/Appwrite/Utopia/Response/Model/Key.php index 79e3417ee..bca3ba7f9 100644 --- a/src/Appwrite/Utopia/Response/Model/Key.php +++ b/src/Appwrite/Utopia/Response/Model/Key.php @@ -45,7 +45,7 @@ class Key extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -55,11 +55,11 @@ class Key extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_KEY; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Language.php b/src/Appwrite/Utopia/Response/Model/Language.php index 8819b520b..77a115ab6 100644 --- a/src/Appwrite/Utopia/Response/Model/Language.php +++ b/src/Appwrite/Utopia/Response/Model/Language.php @@ -33,7 +33,7 @@ class Language extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -43,11 +43,11 @@ class Language extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_LANGUAGE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Locale.php b/src/Appwrite/Utopia/Response/Model/Locale.php index 7f430d807..c725d65f9 100644 --- a/src/Appwrite/Utopia/Response/Model/Locale.php +++ b/src/Appwrite/Utopia/Response/Model/Locale.php @@ -57,7 +57,7 @@ class Locale extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -67,11 +67,11 @@ class Locale extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_LOCALE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Log.php b/src/Appwrite/Utopia/Response/Model/Log.php index baf2f8334..8d987c866 100644 --- a/src/Appwrite/Utopia/Response/Model/Log.php +++ b/src/Appwrite/Utopia/Response/Model/Log.php @@ -117,7 +117,7 @@ class Log extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -127,11 +127,11 @@ class Log extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_LOG; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Membership.php b/src/Appwrite/Utopia/Response/Model/Membership.php index 808b99669..419eeac3e 100644 --- a/src/Appwrite/Utopia/Response/Model/Membership.php +++ b/src/Appwrite/Utopia/Response/Model/Membership.php @@ -70,7 +70,7 @@ class Membership extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -80,11 +80,11 @@ class Membership extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_MEMBERSHIP; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Mock.php b/src/Appwrite/Utopia/Response/Model/Mock.php index dade6e00d..349042152 100644 --- a/src/Appwrite/Utopia/Response/Model/Mock.php +++ b/src/Appwrite/Utopia/Response/Model/Mock.php @@ -21,7 +21,7 @@ class Mock extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -31,11 +31,11 @@ class Mock extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_MOCK; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/None.php b/src/Appwrite/Utopia/Response/Model/None.php index 87bb1ca24..956ba0b72 100644 --- a/src/Appwrite/Utopia/Response/Model/None.php +++ b/src/Appwrite/Utopia/Response/Model/None.php @@ -14,7 +14,7 @@ class None extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -24,11 +24,11 @@ class None extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_NONE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Permissions.php b/src/Appwrite/Utopia/Response/Model/Permissions.php index 3dc389e85..a173c6db8 100644 --- a/src/Appwrite/Utopia/Response/Model/Permissions.php +++ b/src/Appwrite/Utopia/Response/Model/Permissions.php @@ -29,7 +29,7 @@ class Permissions extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -39,11 +39,11 @@ class Permissions extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_PERMISSIONS; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Phone.php b/src/Appwrite/Utopia/Response/Model/Phone.php index e077193e8..5f1153a76 100644 --- a/src/Appwrite/Utopia/Response/Model/Phone.php +++ b/src/Appwrite/Utopia/Response/Model/Phone.php @@ -33,7 +33,7 @@ class Phone extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -43,11 +43,11 @@ class Phone extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_PHONE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Platform.php b/src/Appwrite/Utopia/Response/Model/Platform.php index 9925d4c2d..f48f9890a 100644 --- a/src/Appwrite/Utopia/Response/Model/Platform.php +++ b/src/Appwrite/Utopia/Response/Model/Platform.php @@ -67,7 +67,7 @@ class Platform extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -77,11 +77,11 @@ class Platform extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_PLATFORM; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Preferences.php b/src/Appwrite/Utopia/Response/Model/Preferences.php index 24196f6a8..c95c13710 100644 --- a/src/Appwrite/Utopia/Response/Model/Preferences.php +++ b/src/Appwrite/Utopia/Response/Model/Preferences.php @@ -13,7 +13,7 @@ class Preferences extends Any /** * Get Name - * + * * @return string */ public function getName():string @@ -23,11 +23,11 @@ class Preferences extends Any /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_PREFERENCES; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Project.php b/src/Appwrite/Utopia/Response/Model/Project.php index fa3589e1f..7adadfb87 100644 --- a/src/Appwrite/Utopia/Response/Model/Project.php +++ b/src/Appwrite/Utopia/Response/Model/Project.php @@ -175,7 +175,7 @@ class Project extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -185,11 +185,11 @@ class Project extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_PROJECT; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Rule.php b/src/Appwrite/Utopia/Response/Model/Rule.php index a98fb77a3..018ab5afc 100644 --- a/src/Appwrite/Utopia/Response/Model/Rule.php +++ b/src/Appwrite/Utopia/Response/Model/Rule.php @@ -69,7 +69,7 @@ class Rule extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -79,11 +79,11 @@ class Rule extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_RULE; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Session.php b/src/Appwrite/Utopia/Response/Model/Session.php index f431f3f43..81b975fb7 100644 --- a/src/Appwrite/Utopia/Response/Model/Session.php +++ b/src/Appwrite/Utopia/Response/Model/Session.php @@ -147,7 +147,7 @@ class Session extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -157,11 +157,11 @@ class Session extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_SESSION; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Tag.php b/src/Appwrite/Utopia/Response/Model/Tag.php index b48e15729..27c80c1c2 100644 --- a/src/Appwrite/Utopia/Response/Model/Tag.php +++ b/src/Appwrite/Utopia/Response/Model/Tag.php @@ -45,7 +45,7 @@ class Tag extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -55,11 +55,11 @@ class Tag extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_TAG; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Task.php b/src/Appwrite/Utopia/Response/Model/Task.php index 10e97acad..c4080a112 100644 --- a/src/Appwrite/Utopia/Response/Model/Task.php +++ b/src/Appwrite/Utopia/Response/Model/Task.php @@ -117,7 +117,7 @@ class Task extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -127,11 +127,11 @@ class Task extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_TASK; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Team.php b/src/Appwrite/Utopia/Response/Model/Team.php index b5f7482a1..8d68316ab 100644 --- a/src/Appwrite/Utopia/Response/Model/Team.php +++ b/src/Appwrite/Utopia/Response/Model/Team.php @@ -39,7 +39,7 @@ class Team extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -49,11 +49,11 @@ class Team extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_TEAM; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Token.php b/src/Appwrite/Utopia/Response/Model/Token.php index fb34f01fd..df812a51a 100644 --- a/src/Appwrite/Utopia/Response/Model/Token.php +++ b/src/Appwrite/Utopia/Response/Model/Token.php @@ -39,7 +39,7 @@ class Token extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -49,11 +49,11 @@ class Token extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_TOKEN; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/User.php b/src/Appwrite/Utopia/Response/Model/User.php index 00353724c..8421c46ce 100644 --- a/src/Appwrite/Utopia/Response/Model/User.php +++ b/src/Appwrite/Utopia/Response/Model/User.php @@ -63,7 +63,7 @@ class User extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -73,11 +73,11 @@ class User extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_USER; } -} \ No newline at end of file +} diff --git a/src/Appwrite/Utopia/Response/Model/Webhook.php b/src/Appwrite/Utopia/Response/Model/Webhook.php index f8967cb27..fe3ce8489 100644 --- a/src/Appwrite/Utopia/Response/Model/Webhook.php +++ b/src/Appwrite/Utopia/Response/Model/Webhook.php @@ -63,7 +63,7 @@ class Webhook extends Model /** * Get Name - * + * * @return string */ public function getName():string @@ -73,11 +73,11 @@ class Webhook extends Model /** * Get Collection - * + * * @return string */ public function getType():string { return Response::MODEL_WEBHOOK; } -} \ No newline at end of file +}