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

src/Calendar/AbstractCalendar.php 2 locations

@@ 204-209 (lines=6) @@
201
      $events[$unit][Event::BAT_DAY] = $this->itemizeDays($db_events, $itemized, $unit, $keyed_units);
202
203
      // Handle hours
204
      if (isset($itemized[Event::BAT_HOUR]) || isset($db_events[$unit][Event::BAT_HOUR])) {
205
        $events[$unit][Event::BAT_HOUR] = $this->itemizeHours($db_events, $itemized, $unit, $keyed_units);
206
      } else {
207
        // No hours - set an empty array
208
        $events[$unit][Event::BAT_HOUR] = array();
209
      }
210
211
      // Handle minutes
212
      if (isset($itemized[Event::BAT_MINUTE]) || isset($db_events[$unit][Event::BAT_MINUTE])) {
@@ 212-217 (lines=6) @@
209
      }
210
211
      // Handle minutes
212
      if (isset($itemized[Event::BAT_MINUTE]) || isset($db_events[$unit][Event::BAT_MINUTE])) {
213
        $events[$unit][Event::BAT_MINUTE] = $this->itemizeMinutes($db_events, $itemized, $unit, $keyed_units);
214
      } else {
215
        // No minutes - set an empty array
216
        $events[$unit][Event::BAT_MINUTE] = array();
217
      }
218
219
    }
220