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

@@ 214-231 (lines=18) @@
211
            if (is_numeric($scheduleEvery)) return TRUE; else return FALSE;
212
        }
213
        
214
        public static function validateScheduleWeekDays($scheduleWeekDays)
215
        {
216
            $weekdays = explode(',', $scheduleWeekDays);
217
            
218
            if (sizeof($weekdays)<1) return FALSE;
219
            
220
            $isValid=TRUE;
221
            
222
            for ($i=0; $i < sizeof($weekdays); $i++) { 
223
                if (is_numeric($weekdays[$i])) {
224
                    $wday=intval($weekdays[$i]);
225
                    if ($wday<1 || $wday>7) $isValid=FALSE;
226
                }
227
                else $isValid=FALSE;
228
            }
229
            //echo $scheduleWeekDays.' --- '. $isValid."<br>";
230
            return $isValid;
231
        }
232
        
233
        public static function validateScheduleMonthlyMode($scheduleMonthlyMode)
234
        {
@@ 240-257 (lines=18) @@
237
            if (in_array($scheduleMonthlyMode, $schedMonthlyMmodes)) return TRUE; else return FALSE;
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
                }
253
                else $isValid=FALSE;
254
            }
255
256
            return $isValid;
257
        }
258
        
259
        public static function validateScheduleNthN($scheduleNthN)
260
        {