From acd1dd2479e9b3cf5c0abda2f9bd1ff674eb775b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 19 Feb 2025 12:56:27 +0100 Subject: [PATCH] Formatting fix --- app/controllers/general.php | 4 ++-- src/Appwrite/Platform/Modules/Functions/Workers/Builds.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 1497980c17..20ae1d2e46 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1181,7 +1181,7 @@ App::get('/robots.txt') $template = new View(__DIR__ . '/../views/general/robots.phtml'); $response->text($template->render(false)); } else { - if(router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) { + if (router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) { $utopia->getRoute()?->label('router', true); } } @@ -1211,7 +1211,7 @@ App::get('/humans.txt') $template = new View(__DIR__ . '/../views/general/humans.phtml'); $response->text($template->render(false)); } else { - if(router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) { + if (router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) { $utopia->getRoute()?->label('router', true); } } diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index 7e84325e9b..80411e9492 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -138,7 +138,7 @@ class Builds extends Action if ($resource->isEmpty()) { throw new \Exception('Resource not found'); } - + // TODO: Sites support if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $resource->getId())) { throw new \Exception('Resource is blocked'); @@ -159,7 +159,7 @@ class Builds extends Action $runtime = $this->getRuntime($resource, $version); $spec = Config::getParam('runtime-specifications')[$resource->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)]; - + if (\is_null($runtime)) { throw new \Exception('Runtime "' . $function->getAttribute('runtime', '') . '" is not supported'); }