Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 11, 2023
1 parent 211c768 commit b98716b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpeningHours.php
Original file line number Diff line number Diff line change
Expand Up @@ -859,10 +859,10 @@ protected function daysBetween(string $start, string $end): Generator
exit;
}

$format = ([
$format = [
2 => 'm-d',
3 => 'Y-m-d',
])[$count] ?? 'l';
][$count] ?? 'l';

foreach (new DatePeriod($startDate, new DateInterval('P1D'), $endDate) as $date) {
yield $date->format($format);
Expand Down

0 comments on commit b98716b

Please sign in to comment.