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

@@ 162-164 (lines=3) @@
159
          } else { // alternatively it is the last day of the start month
160
            $dayrange = new \DatePeriod($this->event->getStartDate(), $dayinterval, $this->event->endMonthDate($this->event->getStartDate()));
161
          }
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
        // Handle the last month (will be skipped if event is same month)
@@ 170-172 (lines=3) @@
167
        // Handle the last month (will be skipped if event is same month)
168
        elseif ($this->event->isLastMonth($date)) {
169
          $dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, $this->event->getEndDate());
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
        // We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included)
@@ 178-180 (lines=3) @@
175
        // We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included)
176
        else {
177
          $dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, new \DateTime($date->format("Y-n-t 23:59:59")));
178
          foreach ($dayrange as $day) {
179
            $itemized[EventItemizer::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->event->getValue();
180
          }
181
        }
182
      }
183
      $start = FALSE;