aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/Object/Orphans.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Command/Object/Orphans.php')
-rw-r--r--apps/files/lib/Command/Object/Orphans.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/Object/Orphans.php b/apps/files/lib/Command/Object/Orphans.php
index aac05f2d4c0..f7132540fc8 100644
--- a/apps/files/lib/Command/Object/Orphans.php
+++ b/apps/files/lib/Command/Object/Orphans.php
@@ -63,9 +63,9 @@ class Orphans extends Base {
$fileId = (int)substr($object['urn'], $prefixLength);
return !$this->fileIdInDb($fileId);
});
- $orphans->rewind();
- $this->objectUtils->writeIteratorToOutput($input, $output, $orphans, self::CHUNK_SIZE);
+ $orphans = $this->objectUtils->formatObjects($orphans, $input->getOption('output') === self::OUTPUT_FORMAT_PLAIN);
+ $this->writeStreamingTableInOutputFormat($input, $output, $orphans, self::CHUNK_SIZE);
return self::SUCCESS;
}