@@ 421-427 (lines=7) @@ | ||
418 | { |
|
419 | $dateTime = $this->copyDateTime($dateTime); |
|
420 | $nextClose = null; |
|
421 | if ($this->overflow) { |
|
422 | $dateTimeMinus1Day = $this->copyDateTime($dateTime)->modify('-1 day'); |
|
423 | $openingHoursForDayBefore = $this->forDate($dateTimeMinus1Day); |
|
424 | if ($openingHoursForDayBefore->isOpenAtNight(Time::fromDateTime($dateTimeMinus1Day))) { |
|
425 | $nextClose = $openingHoursForDayBefore->nextClose(Time::fromDateTime($dateTime)); |
|
426 | } |
|
427 | } |
|
428 | ||
429 | $openingHoursForDay = $this->forDate($dateTime); |
|
430 | if (! $nextClose) { |
|
@@ 503-509 (lines=7) @@ | ||
500 | { |
|
501 | $dateTime = $this->copyDateTime($dateTime); |
|
502 | $previousClose = null; |
|
503 | if ($this->overflow) { |
|
504 | $dateTimeMinus1Day = $this->copyDateTime($dateTime)->modify('-1 day'); |
|
505 | $openingHoursForDayBefore = $this->forDate($dateTimeMinus1Day); |
|
506 | if ($openingHoursForDayBefore->isOpenAtNight(Time::fromDateTime($dateTimeMinus1Day))) { |
|
507 | $previousClose = $openingHoursForDayBefore->previousClose(Time::fromDateTime($dateTime)); |
|
508 | } |
|
509 | } |
|
510 | ||
511 | $openingHoursForDay = $this->forDate($dateTime); |
|
512 | if (! $previousClose) { |