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

src/Route4Me/AddressBookLocation.php 2 locations

@@ 300-307 (lines=8) @@
297
                    $schedule="";
298
                    $mode="";
299
                    
300
                    if (isset($rows[$locationsFieldsMapping['schedule_mode']])) {
301
                        if ($this->validateScheduleMode($rows[$locationsFieldsMapping['schedule_mode']])) {
302
                            $schedule='"mode":"'.$rows[$locationsFieldsMapping['schedule_mode']].'",'; 
303
                            $mode=$rows[$locationsFieldsMapping['schedule_mode']];
304
                        }
305
                        else {array_push($results['fail'],"$iRow --> Wrong schedule mode parameter"); $schedule="";}
306
                    }
307
                    else {array_push($results['fail'],"$iRow --> The schedule mode parameter is not set"); $schedule="";}
308
                    
309
                    if (isset($rows[$locationsFieldsMapping['schedule_enabled']])) {
310
                        if ($this->validateScheduleEnable($rows[$locationsFieldsMapping['schedule_enabled']])) { 
@@ 340-347 (lines=8) @@
337
                                break;
338
                            case 'monthly':
339
                                $monthlyMode="";
340
                                if (isset($rows[$locationsFieldsMapping['monthly_mode']])) {
341
                                    if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) {
342
                                         $monthlyMode=$rows[$locationsFieldsMapping['monthly_mode']];
343
                                         $schedule.='"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",';
344
                                    }
345
                                    else {array_push($results['fail'],"$iRow --> Wrong monthly mode"); $schedule="";}
346
                                }
347
                                else {array_push($results['fail'],"$iRow --> The parameter sched_monthly_mode is not set"); $schedule="";}
348
                                
349
                                if ($monthlyMode!="") {
350
                                    switch ($monthlyMode) {