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

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