From 0a0479f4c5416d875b28d0152ab0fdd85aabd896 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Sat, 13 Jan 2024 10:11:25 +0000 Subject: [PATCH] chore: fmt --- app/controllers/api/account.php | 2 +- src/Appwrite/Specification/Format/OpenAPI3.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 9584dc0ab3..dea25cb605 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -777,7 +777,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') $duration = $project->getAttribute('auths', [])['duration'] ?? Auth::TOKEN_EXPIRATION_LOGIN_LONG; $expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration)); - + // If the `token` param is set, we will return the token in the query string if ($state['token']) { $secret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_OAUTH2); diff --git a/src/Appwrite/Specification/Format/OpenAPI3.php b/src/Appwrite/Specification/Format/OpenAPI3.php index 4f48b274a0..1c2894c02e 100644 --- a/src/Appwrite/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/Specification/Format/OpenAPI3.php @@ -155,10 +155,10 @@ class OpenAPI3 extends Format if (empty($routeSecurity)) { if (!$route->getLabel('sdk.hideServer', false)) { $sdkPlatforms[] = APP_PLATFORM_SERVER; - } + } if (!$route->getLabel('sdk.hideClient', false)) { $sdkPlatforms[] = APP_PLATFORM_CLIENT; - } + } } $temp = [