From 41882ee52bbcc0e998ae6e31745e613de824294b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=A4drich?= <11225821+shaedrich@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:07:50 +0100 Subject: [PATCH] Fix StyleCI --- src/Illuminate/Console/Scheduling/ManagesFrequencies.php | 1 - .../Console/Scheduling/ValidatesFrequencies.php | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index 594f7ddeada..6e44d33d9f1 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -2,7 +2,6 @@ namespace Illuminate\Console\Scheduling; -use Illuminate\Console\Scheduling\ValidatesFrequencies; use Illuminate\Support\Carbon; use InvalidArgumentException; diff --git a/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php b/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php index 96a8ffe0f16..20381fc5998 100644 --- a/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php @@ -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"); } } @@ -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"); } } @@ -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"); } } @@ -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"); } } }