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

src/Route4Me/AddressBookLocation.php 2 locations

@@ 240-257 (lines=18) @@
237
        }
238
    }
239
    
240
    public static function validateScheduleMonthlyDates($scheduleMonthlyDates)
241
    {
242
        $monthlyDates = explode(',', $scheduleMonthlyDates);
243
        
244
        if (sizeof($monthlyDates) <1) return FALSE;
245
        
246
        $isValid = TRUE;
247
        
248
        for ($i=0; $i < sizeof($monthlyDates); $i++) { 
249
            if (is_numeric($monthlyDates[$i])) {
250
                $mday = intval($monthlyDates[$i]);
251
                if ($mday <1 || $mday > 31) $isValid = FALSE;
252
            } else {
253
                $isValid = FALSE;
254
            }
255
        }
256
257
        return $isValid;
258
    }
259
    
260
    public static function validateScheduleNthN($scheduleNthN)
@@ 209-226 (lines=18) @@
206
        }
207
    }
208
    
209
    public static function validateScheduleWeekDays($scheduleWeekDays)
210
    {
211
        $weekdays = explode(',', $scheduleWeekDays);
212
        
213
        if (sizeof($weekdays)<1) return FALSE;
214
        
215
        $isValid = TRUE;
216
        
217
        for ($i=0; $i<sizeof($weekdays); $i++) { 
218
            if (is_numeric($weekdays[$i])) {
219
                $wday = intval($weekdays[$i]);
220
                if ($wday<1 || $wday>7) $isValid = FALSE;
221
            } else {
222
                $isValid = FALSE;
223
            }
224
        }
225
        
226
        return $isValid;
227
    }
228
    
229
    public static function validateScheduleMonthlyMode($scheduleMonthlyMode)