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

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