mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix linter
This commit is contained in:
+4
-4
@@ -158,7 +158,7 @@ $cli = $platform->getCli();
|
||||
$cli
|
||||
->error()
|
||||
->inject('error')
|
||||
->action(function(Throwable $error) {
|
||||
->action(function (Throwable $error) {
|
||||
Console::error($error->getMessage());
|
||||
});
|
||||
|
||||
@@ -166,7 +166,7 @@ $cli
|
||||
->init()
|
||||
->inject('pools')
|
||||
->inject('cache')
|
||||
->action(function(Group $pools, Cache $cache) {
|
||||
->action(function (Group $pools, Cache $cache) {
|
||||
$maxAttempts = 5;
|
||||
$sleep = 3;
|
||||
|
||||
@@ -189,7 +189,7 @@ $cli
|
||||
$collections = Config::getParam('collections', []);
|
||||
$last = \array_key_last($collections);
|
||||
|
||||
if($dbForConsole->exists($dbForConsole->getDefaultDatabase(), $last)) {
|
||||
if ($dbForConsole->exists($dbForConsole->getDefaultDatabase(), $last)) {
|
||||
$ready = true;
|
||||
break;
|
||||
}
|
||||
@@ -197,7 +197,7 @@ $cli
|
||||
sleep($sleep);
|
||||
} while ($attempts < $maxAttempts);
|
||||
|
||||
if(!$ready) {
|
||||
if (!$ready) {
|
||||
throw new Exception("Console is not ready yet. Please try again later.");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user