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

@@ 177-182 (lines=6) @@
174
      $events[$unit][Event::BAT_DAY] = $this->itemizeDays($db_events, $itemized, $unit, $keyed_units);
175
176
      // Handle hours
177
      if (isset($itemized[Event::BAT_HOUR])) {
178
        $events[$unit][Event::BAT_HOUR] = $this->itemizeHours($db_events, $itemized, $unit, $keyed_units);
179
      } else {
180
        // No hours - set an empty array
181
        $events[$unit][Event::BAT_HOUR] = array();
182
      }
183
184
      // Handle minutes
185
      if (isset($itemized[Event::BAT_MINUTE])) {
@@ 185-190 (lines=6) @@
182
      }
183
184
      // Handle minutes
185
      if (isset($itemized[Event::BAT_MINUTE])) {
186
        $events[$unit][Event::BAT_MINUTE] = $this->itemizeMinutes($db_events, $itemized, $unit, $keyed_units);
187
      } else {
188
        // No minutes - set an empty array
189
        $events[$unit][Event::BAT_MINUTE] = array();
190
      }
191
192
    }
193