Skip to content

[9.x] Improve ScheduleListCommand - #41552

Merged
taylorotwell merged 9 commits into
laravel:9.xfrom
lucasmichot:ScheduleListCommand
Mar 18, 2022
Merged

taylorotwell merged 9 commits into
laravel:9.xfrom
lucasmichot:ScheduleListCommand

Conversation

@lucasmichot

Copy link
Copy Markdown
Contributor

This PR adds an extra test for the case the Schedule list is empty and clean up the ScheduleListCommand

@driesvints driesvints changed the title [9.x] Schedule list command. [9.x] Schedule list command Mar 18, 2022
@driesvints driesvints changed the title [9.x] Schedule list command [9.x] Improve ScheduleListCommand Mar 18, 2022
@taylorotwell
taylorotwell merged commit 9598024 into laravel:9.x Mar 18, 2022
@lucasmichot
lucasmichot deleted the ScheduleListCommand branch March 21, 2022 16:36
salmanarshad321 pushed a commit to salmanarshad321/framework that referenced this pull request Sep 23, 2026
* Add an extra test.

* Promote early return if the schedule is empty.

* Call getTerminalWidth statically.

* Call str_replace only once.

* No need to create a new DateTimeZone for each item in the map.

* Use line() method.

* Clean up formatCronExpression method.

* Fix CS.

* formatting

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants