$input->
getOption('offset'
) ?
(int) $input->
getOption('offset'
) : null,
(int) $input->
getOption('grace-period-days'
),
$input->
getOption('folder-entity'
),
);
$output->
write(implode(',',
array_map(fn ($col) =>
sprintf('"%s"',
$col),
['Filename', 'Title', 'Uploaded At', 'File Size'
])));
foreach ($mediaBatches as $mediaBatch) { foreach ($mediaBatch as $media) { $row =
[ $media->
getFileNameIncludingExtension(),
$media->
getTitle(),
$media->
getUploadedAt()?->
format('F jS, Y'
),
MemorySizeCalculator::
formatToBytes($media->
getFileSize() ?? 0
),
];
$output->
write(sprintf("\n%s",
implode(',',
array_map(fn ($col) =>
sprintf('"%s"',
$col),
$row))));
} } return self::SUCCESS;
} private function dryRun(InputInterface
$input, OutputInterface
$output): int
{