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

src/Calendar/AbstractCalendar.php 2 locations

@@ 270-279 (lines=10) @@
267
268
    // Now fill in hour data coming from the database which the mock event did *not* cater for in the data structure
269
    if (isset($db_events[$unit][Event::BAT_HOUR])) {
270
      foreach ($db_events[$unit][Event::BAT_HOUR] as $year => $months) {
271
        foreach ($months as $month => $days) {
272
          foreach ($days as $day => $hours) {
273
            foreach ($hours as $hour => $value) {
274
              $result[$year][$month][$day][$hour] = ((int) $value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int) $value);
275
            }
276
            ksort($result[$year][$month][$day], SORT_NATURAL);
277
          }
278
        }
279
      }
280
    }
281
282
    return $result;
@@ 319-328 (lines=10) @@
316
    // Now fill in minute data coming from the database which the mock event did *not* cater for
317
    if (isset($db_events[$unit][Event::BAT_MINUTE])) {
318
      foreach ($db_events[$unit][Event::BAT_MINUTE] as $year => $months) {
319
        foreach ($months as $month => $days) {
320
          foreach ($days as $day => $hours) {
321
            foreach ($hours as $hour => $minutes) {
322
              foreach ($minutes as $minute => $value) {
323
                $result[$year][$month][$day][$hour][$minute] = ((int) $value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int) $value);
324
              }
325
              ksort($result[$year][$month][$day][$hour], SORT_NATURAL);
326
            }
327
          }
328
        }
329
      }
330
    }
331