|
@@ -20,7 +20,8 @@ use JetBrains\PhpStorm\Pure;
|
|
|
/**
|
|
/**
|
|
|
* Cronjob that delete temporary files older than N days
|
|
* Cronjob that delete temporary files older than N days
|
|
|
*
|
|
*
|
|
|
- * >>> ot:cron clean-temp-files
|
|
|
|
|
|
|
+ * >>> ot:cron run clean-temp-files --preview
|
|
|
|
|
+ * >>> ot:cron run clean-temp-files
|
|
|
*/
|
|
*/
|
|
|
class CleanTempFiles extends BaseCronJob implements CronjobInterface
|
|
class CleanTempFiles extends BaseCronJob implements CronjobInterface
|
|
|
{
|
|
{
|
|
@@ -90,7 +91,7 @@ class CleanTempFiles extends BaseCronJob implements CronjobInterface
|
|
|
* @return Collection<File>
|
|
* @return Collection<File>
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
|
- protected function listFilesToDelete(\DateTime $maxDate): Collection
|
|
|
|
|
|
|
+ protected function listFilesToDelete(\DateTime $maxDate): array
|
|
|
{
|
|
{
|
|
|
$this->ui->print('List temporary files created before ' . $maxDate->format('c'));
|
|
$this->ui->print('List temporary files created before ' . $maxDate->format('c'));
|
|
|
|
|
|