From a91f313a1c5796429cfb39b0e2e507e221532282 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Mar 2025 15:23:13 +0100 Subject: feat: move streaming output helps to command base class Signed-off-by: Robin Appelman --- apps/files/lib/Command/Object/Orphans.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/lib/Command/Object/Orphans.php') 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; } -- cgit v1.2.3