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

@@ 188-193 (lines=6) @@
185
      $events[$unit][Event::BAT_DAY] = $this->itemizeDays($db_events, $itemized, $unit, $keyed_units);
186
187
      // Handle hours
188
      if (isset($itemized[Event::BAT_HOUR]) || isset($db_events[$unit][Event::BAT_HOUR])) {
189
        $events[$unit][Event::BAT_HOUR] = $this->itemizeHours($db_events, $itemized, $unit, $keyed_units);
190
      } else {
191
        // No hours - set an empty array
192
        $events[$unit][Event::BAT_HOUR] = array();
193
      }
194
195
      // Handle minutes
196
      if (isset($itemized[Event::BAT_MINUTE]) || isset($db_events[$unit][Event::BAT_MINUTE])) {
@@ 196-201 (lines=6) @@
193
      }
194
195
      // Handle minutes
196
      if (isset($itemized[Event::BAT_MINUTE]) || isset($db_events[$unit][Event::BAT_MINUTE])) {
197
        $events[$unit][Event::BAT_MINUTE] = $this->itemizeMinutes($db_events, $itemized, $unit, $keyed_units);
198
      } else {
199
        // No minutes - set an empty array
200
        $events[$unit][Event::BAT_MINUTE] = array();
201
      }
202
203
    }
204