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

src/Store/DrupalDBStore.php 1 location

@@ 51-53 (lines=3) @@
48
49
    // With the day events taken care off let's cycle through hours
50
    while( $data = $results[Event::BAT_HOUR]->fetchAssoc()) {
51
      for ($i = 0; $i<=23; $i++) {
52
        $db_events[$data['unit_id']][Event::BAT_HOUR][$data['year']][$data['month']][$data['day']]['h'. $i] = $data['h'.$i];
53
      }
54
    }
55
56
    // With the hour events taken care off let's cycle through minutes

src/Store/SqlLiteDBStore.php 2 locations

@@ 52-54 (lines=3) @@
49
      // Figure out how many days the current month has
50
      $temp_date = new \DateTime($data['year'] . "-" . $data['month']);
51
      $days_in_month = (int)$temp_date->format('t');
52
      for ($i = 1; $i<=$days_in_month; $i++) {
53
        $db_events[$data['unit_id']][Event::BAT_DAY][$data['year']][$data['month']]['d' . $i] = $data['d'.$i];
54
      }
55
    }
56
57
    // With the day events taken care off let's cycle through hours
@@ 59-61 (lines=3) @@
56
57
    // With the day events taken care off let's cycle through hours
58
    foreach ($results[Event::BAT_HOUR]->fetchAll() as $data) {
59
      for ($i = 0; $i<=23; $i++) {
60
        $db_events[$data['unit_id']][Event::BAT_HOUR][$data['year']][$data['month']][$data['day']]['h'. $i] = $data['h'.$i];
61
      }
62
    }
63
64
    // With the hour events taken care off let's cycle through minutes