@@ 407-413 (lines=7) @@ | ||
404 | { |
|
405 | $dateTime = $this->copyDateTime($dateTime); |
|
406 | $nextClose = null; |
|
407 | if ($this->overflow) { |
|
408 | $dateTimeMinus1Day = $this->copyDateTime($dateTime)->modify('-1 day'); |
|
409 | $openingHoursForDayBefore = $this->forDate($dateTimeMinus1Day); |
|
410 | if ($openingHoursForDayBefore->isOpenAtNight(Time::fromDateTime($dateTimeMinus1Day))) { |
|
411 | $nextClose = $openingHoursForDayBefore->nextClose(Time::fromDateTime($dateTime)); |
|
412 | } |
|
413 | } |
|
414 | ||
415 | $openingHoursForDay = $this->forDate($dateTime); |
|
416 | if (! $nextClose) { |
|
@@ 489-495 (lines=7) @@ | ||
486 | { |
|
487 | $dateTime = $this->copyDateTime($dateTime); |
|
488 | $previousClose = null; |
|
489 | if ($this->overflow) { |
|
490 | $dateTimeMinus1Day = $this->copyDateTime($dateTime)->modify('-1 day'); |
|
491 | $openingHoursForDayBefore = $this->forDate($dateTimeMinus1Day); |
|
492 | if ($openingHoursForDayBefore->isOpenAtNight(Time::fromDateTime($dateTimeMinus1Day))) { |
|
493 | $previousClose = $openingHoursForDayBefore->previousClose(Time::fromDateTime($dateTime)); |
|
494 | } |
|
495 | } |
|
496 | ||
497 | $openingHoursForDay = $this->forDate($dateTime); |
|
498 | if (! $previousClose) { |