summaryrefslogtreecommitdiffstats
path: root/core/Command/Upgrade.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /core/Command/Upgrade.php
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Command/Upgrade.php')
-rw-r--r--core/Command/Upgrade.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index 7782496c76b..dadcdb0904c 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -105,7 +105,7 @@ class Upgrade extends Command {
$dispatcher = \OC::$server->getEventDispatcher();
$progress = new ProgressBar($output);
$progress->setFormat(" %message%\n %current%/%max% [%bar%] %percent:3s%%");
- $listener = function($event) use ($progress, $output) {
+ $listener = function ($event) use ($progress, $output) {
if ($event instanceof GenericEvent) {
$message = $event->getSubject();
if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
@@ -128,7 +128,7 @@ class Upgrade extends Command {
}
}
};
- $repairListener = function($event) use ($progress, $output) {
+ $repairListener = function ($event) use ($progress, $output) {
if (!$event instanceof GenericEvent) {
return;
}
@@ -182,17 +182,17 @@ class Upgrade extends Command {
$dispatcher->addListener('\OC\Repair::error', $repairListener);
- $updater->listen('\OC\Updater', 'maintenanceEnabled', function () use($output) {
+ $updater->listen('\OC\Updater', 'maintenanceEnabled', function () use ($output) {
$output->writeln('<info>Turned on maintenance mode</info>');
});
- $updater->listen('\OC\Updater', 'maintenanceDisabled', function () use($output) {
+ $updater->listen('\OC\Updater', 'maintenanceDisabled', function () use ($output) {
$output->writeln('<info>Turned off maintenance mode</info>');
});
- $updater->listen('\OC\Updater', 'maintenanceActive', function () use($output) {
+ $updater->listen('\OC\Updater', 'maintenanceActive', function () use ($output) {
$output->writeln('<info>Maintenance mode is kept active</info>');
});
$updater->listen('\OC\Updater', 'updateEnd',
- function ($success) use($output, $self) {
+ function ($success) use ($output, $self) {
if ($success) {
$message = "<info>Update successful</info>";
} else {
@@ -200,28 +200,28 @@ class Upgrade extends Command {
}
$output->writeln($message);
});
- $updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use($output) {
+ $updater->listen('\OC\Updater', 'dbUpgradeBefore', function () use ($output) {
$output->writeln('<info>Updating database schema</info>');
});
- $updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) {
+ $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($output) {
$output->writeln('<info>Updated database</info>');
});
- $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use($output) {
+ $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use ($output) {
$output->writeln('<info>Checking whether the database schema can be updated (this can take a long time depending on the database size)</info>');
});
- $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use($output) {
+ $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($output) {
$output->writeln('<info>Checked database schema update</info>');
});
- $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use($output) {
+ $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output) {
$output->writeln('<comment>Disabled incompatible app: ' . $app . '</comment>');
});
- $updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use($output) {
+ $updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($output) {
$output->writeln('<info>Checking for update of app ' . $app . ' in appstore</info>');
});
- $updater->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use($output) {
+ $updater->listen('\OC\Updater', 'upgradeAppStoreApp', function ($app) use ($output) {
$output->writeln('<info>Update app ' . $app . ' from appstore</info>');
});
- $updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use($output) {
+ $updater->listen('\OC\Updater', 'checkAppStoreApp', function ($app) use ($output) {
$output->writeln('<info>Checked for update of app "' . $app . '" in appstore </info>');
});
$updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($output) {
@@ -239,19 +239,19 @@ class Upgrade extends Command {
$updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($output) {
$output->writeln("<info>Updated <$app> to $version</info>");
});
- $updater->listen('\OC\Updater', 'failure', function ($message) use($output, $self) {
+ $updater->listen('\OC\Updater', 'failure', function ($message) use ($output, $self) {
$output->writeln("<error>$message</error>");
});
- $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($output) {
+ $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use ($output) {
$output->writeln("<info>Set log level to debug</info>");
});
- $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use($output) {
+ $updater->listen('\OC\Updater', 'resetLogLevel', function ($logLevel, $logLevelName) use ($output) {
$output->writeln("<info>Reset log level</info>");
});
- $updater->listen('\OC\Updater', 'startCheckCodeIntegrity', function () use($output) {
+ $updater->listen('\OC\Updater', 'startCheckCodeIntegrity', function () use ($output) {
$output->writeln("<info>Starting code integrity check...</info>");
});
- $updater->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function () use($output) {
+ $updater->listen('\OC\Updater', 'finishedCheckCodeIntegrity', function () use ($output) {
$output->writeln("<info>Finished code integrity check</info>");
});