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/Calendar/AbstractCalendar.php 2 locations

@@ 212-220 (lines=9) @@
209
      // Now fill in hour data coming from the database which the mock event did *not* cater for
210
      // but the mock event
211
      if (isset($db_events[$unit][Event::BAT_HOUR])) {
212
        foreach ($db_events[$unit][Event::BAT_HOUR] as $year => $months) {
213
          foreach ($months as $month => $days) {
214
            foreach ($days as $day => $hours) {
215
              foreach ($hours as $hour => $value) {
216
                $events[$unit][Event::BAT_HOUR][$year][$month]['d' . $day][$hour] = ((int) $value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int) $value);
217
              }
218
            }
219
          }
220
        }
221
      }
222
223
      // Fill in minute data coming from the database for our event that is represented
@@ 246-254 (lines=9) @@
243
      // Now fill in minute data coming from the database which the mock event did *not* cater for
244
      if (isset($db_events[$unit][Event::BAT_MINUTE])) {
245
        foreach ($db_events[$unit][Event::BAT_MINUTE] as $year => $months) {
246
          foreach ($months as $month => $days) {
247
            foreach ($days as $day => $hours) {
248
              foreach ($hours as $hour => $minutes) {
249
                foreach ($minutes as $minute => $value) {
250
                  $events[$unit][Event::BAT_MINUTE][$year][$month]['d' . $day]['h' . $hour][$minute] = ((int) $value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int) $value);
251
                }
252
              }
253
            }
254
          }
255
        }
256
      }
257