GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 7-7 lines in 2 locations

src/OpeningHours.php 2 locations

@@ 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) {