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 2 locations

src/Store/DrupalDBStore.php 1 location

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

src/Store/SqlLiteDBStore.php 1 location

@@ 61-63 (lines=3) @@
58
59
    // With the day events taken care off let's cycle through hours
60
    foreach ($results[Event::BAT_HOUR]->fetchAll() as $data) {
61
      for ($i = 0; $i <= 23; $i++) {
62
        $db_events[$data['unit_id']][Event::BAT_HOUR][$data['year']][$data['month']]['d' . $data['day']]['h' . $i] = $data['h' . $i];
63
      }
64
    }
65
66
    // With the hour events taken care off let's cycle through minutes