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/Event/EventItemizer.php 3 locations

@@ 154-156 (lines=3) @@
151
          else { // alternatively it is the last day of the start month
152
            $dayrange = new \DatePeriod($this->event->getStartDate(), $dayinterval, $this->event->endMonthDate($this->event->getStartDate()));
153
          }
154
          foreach ($dayrange as $day) {
155
            $itemized[EventItemizer::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->event->getValue();
156
          }
157
        }
158
159
        // Handle the last month (will be skipped if event is same month)
@@ 162-164 (lines=3) @@
159
        // Handle the last month (will be skipped if event is same month)
160
        elseif ($this->event->isLastMonth($date)) {
161
          $dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, $this->event->getEndDate());
162
          foreach ($dayrange as $day) {
163
            $itemized[EventItemizer::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->event->getValue();
164
          }
165
        }
166
167
        // We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included)
@@ 170-172 (lines=3) @@
167
        // We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included)
168
        else {
169
          $dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, new \DateTime($date->format("Y-n-t 23:59:59")));
170
          foreach ($dayrange as $day) {
171
            $itemized[EventItemizer::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->event->getValue();
172
          }
173
        }
174
      }
175
      $start = FALSE;