From 1fd7359fbb77843e8d480dbea3d800cccfe9555e Mon Sep 17 00:00:00 2001 From: Everly Precia Suresh Date: Mon, 30 May 2022 17:41:25 +0000 Subject: [PATCH] fix linter issues in app directory --- app/config/runtimes.php | 6 +++--- app/controllers/api/database.php | 2 +- app/controllers/api/graphql.php | 6 +++--- app/executor.php | 2 +- app/realtime.php | 2 +- app/workers/audits.php | 2 ++ 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/config/runtimes.php b/app/config/runtimes.php index 3b4268cfc..03be3f07f 100644 --- a/app/config/runtimes.php +++ b/app/config/runtimes.php @@ -1,12 +1,12 @@ setStatusCode(Response::STATUS_CODE_CREATED); return $attribute; -}; +} App::post('/v1/database/collections') ->desc('Create Collection') diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index dcaff9725..e89ae1796 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -1,8 +1,5 @@ desc('GraphQL Endpoint') ->groups(['api', 'graphql']) diff --git a/app/executor.php b/app/executor.php index f5e3fa5f9..83f83e6b5 100644 --- a/app/executor.php +++ b/app/executor.php @@ -114,7 +114,7 @@ function logError(Throwable $error, string $action, Utopia\Route $route = null) Console::error('[Error] Message: ' . $error->getMessage()); Console::error('[Error] File: ' . $error->getFile()); Console::error('[Error] Line: ' . $error->getLine()); -}; +} function getStorageDevice($root): Device { diff --git a/app/realtime.php b/app/realtime.php index 201e47277..0a6cf4f48 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -129,7 +129,7 @@ function getDatabase(Registry &$register, string $namespace) $register->get('redisPool')->put($redis); } ]; -}; +} $server->onStart(function () use ($stats, $register, $containerId, &$statsDocument, $logError) { sleep(5); // wait for the initial database schema to be ready diff --git a/app/workers/audits.php b/app/workers/audits.php index 696eb6df5..c422dbac1 100644 --- a/app/workers/audits.php +++ b/app/workers/audits.php @@ -1,5 +1,7 @@