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

@@ 50-52 (lines=3) @@
47
      // Figure out how many days the current month has
48
      $temp_date = new \DateTime($data['year'] . "-" . $data['month']);
49
      $days_in_month = (int)$temp_date->format('t');
50
      for ($i = 1; $i<=$days_in_month; $i++) {
51
        $db_events[$data['unit_id']][Event::BAT_DAY][$data['year']][$data['month']]['d' . $i] = $data['d'.$i];
52
      }
53
    }
54
55
    // With the day events taken care off let's cycle through hours

src/Store/SqlLiteDBStore.php 1 location

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