Skip to content

Commit

Permalink
Fix StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich authored Dec 20, 2024
1 parent a8fee27 commit 41882ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Illuminate\Console\Scheduling;

use Illuminate\Console\Scheduling\ValidatesFrequencies;
use Illuminate\Support\Carbon;
use InvalidArgumentException;

Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Console/Scheduling/ValidatesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait ValidatesFrequencies
protected function validateHour(int $hour)
{
if ($hour < 0 || $hour > HOURS_PER_DAY) {
throw new InvalidArgumentException("Hour cron expression component must be between 0 and ".HOURS_PER_DAY.". [$hour] given");
throw new InvalidArgumentException('Hour cron expression component must be between 0 and '.HOURS_PER_DAY.". [$hour] given");
}
}

Expand All @@ -24,7 +24,7 @@ protected function validateHour(int $hour)
protected function validateDayOfWeek(int $dayOfWeek)
{
if ($dayOfWeek < 0 || $dayOfWeek > DAYS_PER_WEEK) {
throw new InvalidArgumentException("Day of week cron expression component must be between 0 and ".DAYS_PER_WEEK.". [$dayOfWeek] given");
throw new InvalidArgumentException('Day of week cron expression component must be between 0 and '.DAYS_PER_WEEK.". [$dayOfWeek] given");
}
}

Expand All @@ -34,7 +34,7 @@ protected function validateDayOfWeek(int $dayOfWeek)
protected function validateMonth(int $month)
{
if ($month < 0 || $month > MONTHS_PER_YEAR) {
throw new InvalidArgumentException("Month cron expression component must be between 0 and ".MONTHS_PER_YEAR.". [$month] given");
throw new InvalidArgumentException('Month cron expression component must be between 0 and '.MONTHS_PER_YEAR.". [$month] given");
}
}

Expand All @@ -44,7 +44,7 @@ protected function validateMonth(int $month)
protected function validateDayOfMonth(int $dayOfMonth)
{
if ($month < 0 || $month > MONTHS_PER_YEAR) {
throw new InvalidArgumentException("Month cron expression component must be between 0 and ".MONTHS_PER_YEAR.". [$month] given");
throw new InvalidArgumentException('Month cron expression component must be between 0 and '.MONTHS_PER_YEAR.". [$month] given");
}
}
}

0 comments on commit 41882ee

Please sign in to comment.