diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-28 16:13:19 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-02 14:16:21 +0200 |
commit | ec5133b739eabc76271789504b4dbb91a534f552 (patch) | |
tree | 880b81f5ebd11b289c67e4bcdd1ecaa41aedbcb4 /core/Command | |
parent | b074399a87e764f506550d64f6379738186355c6 (diff) | |
download | nextcloud-server-ec5133b739eabc76271789504b4dbb91a534f552.tar.gz nextcloud-server-ec5133b739eabc76271789504b4dbb91a534f552.zip |
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/App/Enable.php | 2 | ||||
-rw-r--r-- | core/Command/Base.php | 2 | ||||
-rw-r--r-- | core/Command/Upgrade.php | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/core/Command/App/Enable.php b/core/Command/App/Enable.php index 624b31521ad..ed29f2fed92 100644 --- a/core/Command/App/Enable.php +++ b/core/Command/App/Enable.php @@ -103,7 +103,7 @@ class Enable extends Command implements CompletionAwareInterface { /** @var Installer $installer */ $installer = \OC::$server->query(Installer::class); - if (false === $installer->isDownloaded($appId)) { + if ($installer->isDownloaded($appId) === false) { $installer->downloadApp($appId); } diff --git a/core/Command/Base.php b/core/Command/Base.php index f8b864c5864..64d18c1b2c6 100644 --- a/core/Command/Base.php +++ b/core/Command/Base.php @@ -70,7 +70,7 @@ class Base extends Command implements CompletionAwareInterface { $this->writeArrayInOutputFormat($input, $output, $item, ' ' . $prefix); continue; } - if (!is_int($key) || ListCommand::class === get_class($this)) { + if (!is_int($key) || get_class($this) === ListCommand::class) { $value = $this->valueToString($item); if (!is_null($value)) { $output->writeln($prefix . $key . ': ' . $value); diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php index 45427f6552f..93221f91e73 100644 --- a/core/Command/Upgrade.php +++ b/core/Command/Upgrade.php @@ -80,7 +80,7 @@ class Upgrade extends Command { */ protected function execute(InputInterface $input, OutputInterface $output): int { if (Util::needUpgrade()) { - if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + if ($output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) { // Prepend each line with a little timestamp $timestampFormatter = new TimestampFormatter($this->config, $output->getFormatter()); $output->setFormatter($timestampFormatter); @@ -96,7 +96,7 @@ class Upgrade extends Command { $progress->setFormat(" %message%\n %current%/%max% [%bar%] %percent:3s%%"); $listener = function (MigratorExecuteSqlEvent $event) use ($progress, $output): void { $message = $event->getSql(); - if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + if ($output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) { $output->writeln(' Executing SQL ' . $message); } else { if (strlen($message) > 60) { @@ -132,11 +132,11 @@ class Upgrade extends Command { $progress->finish(); $output->writeln(''); } elseif ($event instanceof RepairStepEvent) { - if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + if ($output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) { $output->writeln('<info>Repair step: ' . $event->getStepName() . '</info>'); } } elseif ($event instanceof RepairInfoEvent) { - if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) { + if ($output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) { $output->writeln('<info>Repair info: ' . $event->getMessage() . '</info>'); } } elseif ($event instanceof RepairWarningEvent) { |