diff --git a/src/Commands/ScheduleList.php b/src/Commands/ScheduleList.php deleted file mode 100644 index 8d98abe..0000000 --- a/src/Commands/ScheduleList.php +++ /dev/null @@ -1,66 +0,0 @@ -schedule = $schedule; - } - - /** - * Execute the console command. - * - * @return mixed - */ - public function handle() - { - $events = array_map(function ($event) { - return [ - 'cron' => $event->expression, - 'command' => static::fixupCommand($event->command), - ]; - }, $this->schedule->events()); - - $this->table( - ['Cron', 'Command'], - $events - ); - } - - /** - * If it's an artisan command, strip off the PHP - * - * @param $command - * @return string - */ - protected static function fixupCommand($command) - { - $parts = explode(' ', $command); - if (count($parts) > 2 && $parts[1] === "'artisan'") { - array_shift($parts); - } - - return implode(' ', $parts); - } -}