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 = 19-19 lines in 2 locations

src/OpeningHours.php 2 locations

@@ 325-343 (lines=19) @@
322
        return end($list) ?: false;
323
    }
324
325
    public function currentOpenRangeStart(DateTimeInterface $dateTime)
326
    {
327
        /** @var TimeRange $range */
328
        $range = $this->currentOpenRange($dateTime);
329
330
        if (! $range) {
331
            return false;
332
        }
333
334
        $dateTime = $this->copyDateTime($dateTime);
335
336
        $nextDateTime = $range->start()->toDateTime();
337
338
        if ($range->overflowsNextDay() && $nextDateTime->format('Hi') > $dateTime->format('Hi')) {
339
            $dateTime = $dateTime->modify('-1 day');
340
        }
341
342
        return $dateTime->setTime($nextDateTime->format('G'), $nextDateTime->format('i'), 0);
343
    }
344
345
    public function currentOpenRangeEnd(DateTimeInterface $dateTime)
346
    {
@@ 345-363 (lines=19) @@
342
        return $dateTime->setTime($nextDateTime->format('G'), $nextDateTime->format('i'), 0);
343
    }
344
345
    public function currentOpenRangeEnd(DateTimeInterface $dateTime)
346
    {
347
        /** @var TimeRange $range */
348
        $range = $this->currentOpenRange($dateTime);
349
350
        if (! $range) {
351
            return false;
352
        }
353
354
        $dateTime = $this->copyDateTime($dateTime);
355
356
        $nextDateTime = $range->end()->toDateTime();
357
358
        if ($range->overflowsNextDay() && $nextDateTime->format('Hi') < $dateTime->format('Hi')) {
359
            $dateTime = $dateTime->modify('+1 day');
360
        }
361
362
        return $dateTime->setTime($nextDateTime->format('G'), $nextDateTime->format('i'), 0);
363
    }
364
365
    public function nextOpen(DateTimeInterface $dateTime): DateTimeInterface
366
    {