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

src/Route4Me/AddressBookLocation.php 2 locations

@@ 195-218 (lines=24) @@
192
        }
193
    }
194
    
195
    public static function validateScheduleWeekDays($scheduleWeekDays)
196
    {
197
        $weekdays = explode(',', $scheduleWeekDays);
198
        $weekdaysSize = sizeof($weekdays);
199
        
200
        if ($weekdaysSize<1) {
201
            return FALSE;
202
        }
203
        
204
        $isValid = TRUE;
205
        
206
        for ($i = 0; $i<$weekdaysSize; $i++) { 
207
            if (is_numeric($weekdays[$i])) {
208
                $wday = intval($weekdays[$i]);
209
                if ($wday<1 || $wday>7) {
210
                    $isValid = FALSE;
211
                }
212
            } else {
213
                $isValid = FALSE;
214
            }
215
        }
216
        
217
        return $isValid;
218
    }
219
    
220
    public static function validateScheduleMonthlyMode($scheduleMonthlyMode)
221
    {
@@ 231-254 (lines=24) @@
228
        }
229
    }
230
    
231
    public static function validateScheduleMonthlyDates($scheduleMonthlyDates)
232
    {
233
        $monthlyDates = explode(',', $scheduleMonthlyDates);
234
        $monthlyDatesSize = sizeof($monthlyDates);
235
        
236
        if ($monthlyDatesSize<1) {
237
            return FALSE;
238
        }
239
        
240
        $isValid = TRUE;
241
        
242
        for ($i = 0; $i<$monthlyDatesSize; $i++) { 
243
            if (is_numeric($monthlyDates[$i])) {
244
                $mday = intval($monthlyDates[$i]);
245
                if ($mday<1 || $mday>31) {
246
                    $isValid = FALSE;
247
                }
248
            } else {
249
                $isValid = FALSE;
250
            }
251
        }
252
253
        return $isValid;
254
    }
255
    
256
    public static function validateScheduleNthN($scheduleNthN)
257
    {