if ($input->
getOption('report'
) &&
$input->
getOption('dry-run'
)) { $io->
error('The options --report and --dry-run cannot be used together, pick one or the other.'
);
return self::FAILURE;
} if ($input->
getOption('report'
)) { return $this->
report($input,
$output);
} if ($input->
getOption('dry-run'
)) { return $this->
dryRun($input,
$output);
} $confirm =
$io->
confirm('Are you sure that you want to delete unused media files?', false
);
if (!
$confirm) { $io->
caution('Aborting due to user input.'
);
return self::SUCCESS;
} $count =
$this->unusedMediaPurger->
deleteNotUsedMedia(