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

src/Component/DatePeriod/DatePeriodFactory.php 1 location

@@ 57-65 (lines=9) @@
54
    {
55
        $_oIso8601Entity = $this->createIso8601Entity($sIso8601);
56
57
        if (!empty($sTimeZone))
58
        {
59
            $_oDateStart = new \DateTime(str_replace('Z', '', $_oIso8601Entity->sStartTime), new \DateTimeZone($sTimeZone));
60
        }
61
        else
62
        {
63
            // todo: use a defined chronos time zone here?
64
            $_oDateStart = new \DateTime($_oIso8601Entity->sStartTime);
65
        }
66
67
        $_oDateInterval = new \DateInterval($_oIso8601Entity->sInterval);
68
        $_oDataEnd = new \DateTime();

src/BusinessCase/Comparison/ChronosJobComparisonBusinessCase.php 1 location

@@ 232-240 (lines=9) @@
229
    {
230
        $_oIso8601Entity = $this->oDatePeriodFactory->createIso8601Entity($sIso8601String);
231
232
        if (!empty($sTimeZone))
233
        {
234
            $_oDateTime = new \DateTime(str_replace('Z', '', $_oIso8601Entity->sStartTime));
235
            $_oDateTime->setTimezone(new \DateTimeZone($sTimeZone));
236
        }
237
        else
238
        {
239
            $_oDateTime = new \DateTime($_oIso8601Entity->sStartTime);
240
        }
241
242
        return $_oDateTime;
243
    }