Skip to content

Commit

Permalink
Also make ScheduleOn cases PascalCase
Browse files Browse the repository at this point in the history
Follow-up to 935efcc

Co-Authored-By: rodrigopedra <[email protected]>
Co-authored-by: Džuris <[email protected]>
  • Loading branch information
3 people authored Dec 19, 2024
1 parent 4c17dcd commit f44b034
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/Illuminate/Console/Enums/ScheduleOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

enum ScheduleOn: int
{
case SUNDAY = 0;
case Sunday = 0;

case MONDAY = 1;
case Monday = 1;

case TUESDAY = 2;
case Tuesday = 2;

case WEDNESDAY = 3;
case Wednesday = 3;

case THURSDAY = 4;
case Thursday = 4;

case FRIDAY = 5;
case Friday = 5;

case SATURDAY = 6;
case Saturday = 6;
}
14 changes: 7 additions & 7 deletions src/Illuminate/Console/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ class Schedule
}

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::SUNDAY instead */
const SUNDAY = ScheduleOn::SUNDAY;
const SUNDAY = ScheduleOn::Sunday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::MONDAY instead */
const MONDAY = ScheduleOn::MONDAY;
const MONDAY = ScheduleOn::Monday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::TUESDAY instead */
const TUESDAY = ScheduleOn::TUESDAY;
const TUESDAY = ScheduleOn::Tuesday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::WEDNESDAY instead */
const WEDNESDAY = ScheduleOn::WEDNESDAY;
const WEDNESDAY = ScheduleOn::Wednesday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::THURSDAY instead */
const THURSDAY = ScheduleOn::THURSDAY;
const THURSDAY = ScheduleOn::Thursday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::FRIDAY instead */
const FRIDAY = ScheduleOn::FRIDAY;
const FRIDAY = ScheduleOn::Friday;

/** @deprecated Use \Illuminate\Console\Enums\ScheduleOn::SATURDAY instead */
const SATURDAY = ScheduleOn::SATURDAY;
const SATURDAY = ScheduleOn::Saturday;

/**
* All of the events on the schedule.
Expand Down

0 comments on commit f44b034

Please sign in to comment.