Migrate verbose messages to inline syntax of writeln()
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
55393939ce
commit
b35daf665f
|
@ -100,8 +100,6 @@ class Repair extends Command {
|
||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
}
|
}
|
||||||
|
|
||||||
$verbose = $output->isVerbose();
|
|
||||||
|
|
||||||
$instanceId = $this->config->getSystemValueString('instanceid');
|
$instanceId = $this->config->getSystemValueString('instanceid');
|
||||||
|
|
||||||
$output->writeln("This will migrate all previews from the old preview location to the new one.");
|
$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 {
|
try {
|
||||||
$this->rootFolder->get("appdata_$instanceId/preview/$newFoldername");
|
$this->rootFolder->get("appdata_$instanceId/preview/$newFoldername");
|
||||||
} catch (NotFoundException $e) {
|
} catch (NotFoundException $e) {
|
||||||
if ($verbose) {
|
$section1->writeln(" Create folder preview/$newFoldername", OutputInterface::VERBOSITY_VERBOSE);
|
||||||
$section1->writeln(" Create folder preview/$newFoldername");
|
|
||||||
}
|
|
||||||
if (!$dryMode) {
|
if (!$dryMode) {
|
||||||
$this->rootFolder->newFolder("appdata_$instanceId/preview/$newFoldername");
|
$this->rootFolder->newFolder("appdata_$instanceId/preview/$newFoldername");
|
||||||
}
|
}
|
||||||
|
@ -254,9 +250,7 @@ class Repair extends Command {
|
||||||
$progressBar->advance();
|
$progressBar->advance();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($verbose) {
|
$section1->writeln(" Move preview/$name/$previewName to preview/$newFoldername", OutputInterface::VERBOSITY_VERBOSE);
|
||||||
$section1->writeln(" Move preview/$name/$previewName to preview/$newFoldername");
|
|
||||||
}
|
|
||||||
if (!$dryMode) {
|
if (!$dryMode) {
|
||||||
try {
|
try {
|
||||||
$preview->move("appdata_$instanceId/preview/$newFoldername/$previewName");
|
$preview->move("appdata_$instanceId/preview/$newFoldername/$previewName");
|
||||||
|
@ -267,9 +261,7 @@ class Repair extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($oldPreviewFolder->getDirectoryListing() === []) {
|
if ($oldPreviewFolder->getDirectoryListing() === []) {
|
||||||
if ($verbose) {
|
$section1->writeln(" Delete empty folder preview/$name", OutputInterface::VERBOSITY_VERBOSE);
|
||||||
$section1->writeln(" Delete empty folder preview/$name");
|
|
||||||
}
|
|
||||||
if (!$dryMode) {
|
if (!$dryMode) {
|
||||||
try {
|
try {
|
||||||
$oldPreviewFolder->delete();
|
$oldPreviewFolder->delete();
|
||||||
|
|
Loading…
Reference in New Issue