diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-17 16:30:33 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-09-17 16:30:33 +0200 |
commit | 24744dcaec04363721b31a8af30bc61bbdd2959f (patch) | |
tree | a85dc9f617a885c5c78d0944774dbd5c51220101 /core/Command/Preview | |
parent | 617b3f79fa3484a1e09ecffafb140fb0f13d9e72 (diff) | |
download | nextcloud-server-24744dcaec04363721b31a8af30bc61bbdd2959f.tar.gz nextcloud-server-24744dcaec04363721b31a8af30bc61bbdd2959f.zip |
Migrate verbose messages to inline syntax of writeln()
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Command/Preview')
-rw-r--r-- | core/Command/Preview/Repair.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/core/Command/Preview/Repair.php b/core/Command/Preview/Repair.php index c04da7ab532..8c83ce2ebea 100644 --- a/core/Command/Preview/Repair.php +++ b/core/Command/Preview/Repair.php @@ -100,8 +100,6 @@ class Repair extends Command { $output->writeln(""); } - $verbose = $output->isVerbose(); - $instanceId = $this->config->getSystemValueString('instanceid'); $output->writeln("This will migrate all previews from the old preview location to the new one."); @@ -237,9 +235,7 @@ class Repair extends Command { try { $this->rootFolder->get("appdata_$instanceId/preview/$newFoldername"); } catch (NotFoundException $e) { - if ($verbose) { - $section1->writeln(" Create folder preview/$newFoldername"); - } + $section1->writeln(" Create folder preview/$newFoldername", OutputInterface::VERBOSITY_VERBOSE); if (!$dryMode) { $this->rootFolder->newFolder("appdata_$instanceId/preview/$newFoldername"); } @@ -254,9 +250,7 @@ class Repair extends Command { $progressBar->advance(); continue; } - if ($verbose) { - $section1->writeln(" Move preview/$name/$previewName to preview/$newFoldername"); - } + $section1->writeln(" Move preview/$name/$previewName to preview/$newFoldername", OutputInterface::VERBOSITY_VERBOSE); if (!$dryMode) { try { $preview->move("appdata_$instanceId/preview/$newFoldername/$previewName"); @@ -267,9 +261,7 @@ class Repair extends Command { } } if ($oldPreviewFolder->getDirectoryListing() === []) { - if ($verbose) { - $section1->writeln(" Delete empty folder preview/$name"); - } + $section1->writeln(" Delete empty folder preview/$name", OutputInterface::VERBOSITY_VERBOSE); if (!$dryMode) { try { $oldPreviewFolder->delete(); |