diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index ac6279a1512..594f7ddeada 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -390,11 +390,11 @@ public function twiceDailyAt($first = 1, $second = 13, $offset = 0) protected function hourBasedSchedule($minutes, $hours) { if (is_array($hours) || is_int($hours)) { - array_walk((array)$hours, $this->validateHour(...)); + array_walk((array) $hours, $this->validateHour(...)); } if (is_array($minutes) || is_int($minutes)) { - array_walk((array)$minutes, $this->validateMinute(...)); + array_walk((array) $minutes, $this->validateMinute(...)); } $minutes = is_array($minutes) ? implode(',', $minutes) : $minutes; diff --git a/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php b/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php index e036fa17a17..96a8ffe0f16 100644 --- a/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ValidatesFrequencies.php @@ -9,42 +9,42 @@ trait ValidatesFrequencies { /** - * @param int $hours + * @param int $hours */ 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"); } } /** - * @param int $dayOfWeek + * @param int $dayOfWeek */ 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"); } } /** - * @param int $month + * @param int $month */ 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"); } } /** - * @param int $month + * @param 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"); } } }