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

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