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 f59e4a1 commit 4a16846
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 @@ -848,10 +848,10 @@ protected function daysBetween(string $start, string $end): Generator
$startDate = new DateTimeImmutable($start);
$endDate = $startDate->modify($end)->modify('+12 hours');

$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 4a16846

Please sign in to comment.