mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Formatting fix
This commit is contained in:
parent
3cc1fb6fb4
commit
acd1dd2479
2 changed files with 4 additions and 4 deletions
|
|
@ -1181,7 +1181,7 @@ App::get('/robots.txt')
|
||||||
$template = new View(__DIR__ . '/../views/general/robots.phtml');
|
$template = new View(__DIR__ . '/../views/general/robots.phtml');
|
||||||
$response->text($template->render(false));
|
$response->text($template->render(false));
|
||||||
} else {
|
} 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);
|
$utopia->getRoute()?->label('router', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1211,7 +1211,7 @@ App::get('/humans.txt')
|
||||||
$template = new View(__DIR__ . '/../views/general/humans.phtml');
|
$template = new View(__DIR__ . '/../views/general/humans.phtml');
|
||||||
$response->text($template->render(false));
|
$response->text($template->render(false));
|
||||||
} else {
|
} 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);
|
$utopia->getRoute()?->label('router', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ class Builds extends Action
|
||||||
if ($resource->isEmpty()) {
|
if ($resource->isEmpty()) {
|
||||||
throw new \Exception('Resource not found');
|
throw new \Exception('Resource not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Sites support
|
// TODO: Sites support
|
||||||
if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $resource->getId())) {
|
if ($isResourceBlocked($project, RESOURCE_TYPE_FUNCTIONS, $resource->getId())) {
|
||||||
throw new \Exception('Resource is blocked');
|
throw new \Exception('Resource is blocked');
|
||||||
|
|
@ -159,7 +159,7 @@ class Builds extends Action
|
||||||
$runtime = $this->getRuntime($resource, $version);
|
$runtime = $this->getRuntime($resource, $version);
|
||||||
|
|
||||||
$spec = Config::getParam('runtime-specifications')[$resource->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)];
|
$spec = Config::getParam('runtime-specifications')[$resource->getAttribute('specification', APP_COMPUTE_SPECIFICATION_DEFAULT)];
|
||||||
|
|
||||||
if (\is_null($runtime)) {
|
if (\is_null($runtime)) {
|
||||||
throw new \Exception('Runtime "' . $function->getAttribute('runtime', '') . '" is not supported');
|
throw new \Exception('Runtime "' . $function->getAttribute('runtime', '') . '" is not supported');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue