hasOption('days') ? (int) $this->option('days') : null; $removed = (new Logger())->purge($days); if ($removed === []) { $this->line('Удалять нечего'); return 0; } foreach ($removed as $file) { $this->ok('удалён ' . $file); } return 0; } }