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

src/Constraint/CheckInDayConstraint.php 1 location

@@ 121-133 (lines=13) @@
118
   * @param $day
119
   * @return string
120
   */
121
  private function getWeekDay($day) {
122
    $weekdays = array(
123
      1 => 'Monday',
124
      2 => 'Tuesday',
125
      3 => 'Wednesday',
126
      4 => 'Thursday',
127
      5 => 'Friday',
128
      6 => 'Saturday',
129
      7 => 'Sunday',
130
    );
131
132
    return isset($weekdays[$day]) ? $weekdays[$day] : '';
133
  }
134
135
}
136

src/Constraint/MinMaxDaysConstraint.php 1 location

@@ 178-190 (lines=13) @@
175
   * @param $day
176
   * @return string
177
   */
178
  private function getWeekDay($day) {
179
    $weekdays = array(
180
      1 => 'Monday',
181
      2 => 'Tuesday',
182
      3 => 'Wednesday',
183
      4 => 'Thursday',
184
      5 => 'Friday',
185
      6 => 'Saturday',
186
      7 => 'Sunday',
187
    );
188
189
    return isset($weekdays[$day]) ? $weekdays[$day] : '';
190
  }
191
192
}
193