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.
Passed
Push — master ( ba89cf...799599 )
by Oleg
02:27
created
src/Route4Me/Route4Me.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -207,6 +207,7 @@
 block discarded – undo
207 207
 
208 208
     /**
209 209
      * @param $object: JSON object
210
+     * @param \SimpleXMLElement $object
210 211
      */
211 212
     public static function object2array($object)
212 213
     {
Please login to merge, or discard this patch.
src/Route4Me/AddressBookLocation.php 1 patch
Switch Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -404,79 +404,79 @@
 block discarded – undo
404 404
                 
405 405
                 if ($mode!='daily') {
406 406
                     switch ($mode) {
407
-                        case 'weekly':
408
-                            if (isset($rows[$locationsFieldsMapping['schedule_weekdays']])) {
409
-                                if ($this->validateScheduleWeekDays($rows[$locationsFieldsMapping['schedule_weekdays']])) {
410
-                                     $curSchedule .= '"weekdays":['.$rows[$locationsFieldsMapping['schedule_weekdays']].']}';
411
-                                } else {
412
-                                    array_push($results['fail'], "$iRow --> Wrong weekdays"); 
413
-                                    $curSchedule = "";
414
-                                }
407
+                    case 'weekly':
408
+                        if (isset($rows[$locationsFieldsMapping['schedule_weekdays']])) {
409
+                            if ($this->validateScheduleWeekDays($rows[$locationsFieldsMapping['schedule_weekdays']])) {
410
+                                 $curSchedule .= '"weekdays":['.$rows[$locationsFieldsMapping['schedule_weekdays']].']}';
411
+                            } else {
412
+                                array_push($results['fail'], "$iRow --> Wrong weekdays"); 
413
+                                $curSchedule = "";
414
+                            }
415
+                        } else {
416
+                            array_push($results['fail'], "$iRow --> The parameters sched_weekdays is not set"); 
417
+                            $curSchedule = "";
418
+                        }
419
+                        break;
420
+                    case 'monthly':
421
+                        $monthlyMode = "";
422
+                        if (isset($rows[$locationsFieldsMapping['monthly_mode']])) {
423
+                            if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) {
424
+                                 $monthlyMode = $rows[$locationsFieldsMapping['monthly_mode']];
425
+                                 $curSchedule .= '"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",';
415 426
                             } else {
416
-                                array_push($results['fail'], "$iRow --> The parameters sched_weekdays is not set"); 
427
+                                array_push($results['fail'], "$iRow --> Wrong monthly mode"); 
417 428
                                 $curSchedule = "";
418 429
                             }
430
+                        } else {
431
+                            array_push($results['fail'], "$iRow --> The parameter sched_monthly_mode is not set"); 
432
+                            $curSchedule = "";
433
+                        }
434
+                            
435
+                        if ($monthlyMode != "") {
436
+                            switch ($monthlyMode) {
437
+                            case 'dates':
438
+                            if (isset($rows[$locationsFieldsMapping['monthly_dates']])) {
439
+                            if ($this->validateScheduleMonthlyDates($rows[$locationsFieldsMapping['monthly_dates']])) {
440
+                                 $curSchedule .= '"dates":['.$rows[$locationsFieldsMapping['monthly_dates']].']}';
441
+                            } else {
442
+                                array_push($results['fail'], "$iRow --> Wrong monthly dates"); 
443
+                                $curSchedule = "";
444
+                            }
445
+                            }
419 446
                             break;
420
-                        case 'monthly':
421
-                            $monthlyMode = "";
422
-                            if (isset($rows[$locationsFieldsMapping['monthly_mode']])) {
423
-                                if ($this->validateScheduleMonthlyMode($rows[$locationsFieldsMapping['monthly_mode']])) {
424
-                                     $monthlyMode = $rows[$locationsFieldsMapping['monthly_mode']];
425
-                                     $curSchedule .= '"mode": "'.$rows[$locationsFieldsMapping['monthly_mode']].'",';
447
+                            case 'nth':
448
+                            if (isset($rows[$locationsFieldsMapping['monthly_nth_n']])) {
449
+                            if ($this->validateScheduleNthN($rows[$locationsFieldsMapping['monthly_nth_n']])) {
450
+                                 $curSchedule .= '"nth":{"n":'.$rows[$locationsFieldsMapping['monthly_nth_n']].',';
451
+                            } else {
452
+                                array_push($results['fail'], "$iRow --> Wrong parameter sched_nth_n"); 
453
+                                $curSchedule = "";
454
+                            }
455
+                            } else {
456
+                            array_push($results['fail'], "$iRow --> The parameter sched_nth_n is not set"); 
457
+                            $curSchedule = "";
458
+                            }
459
+                                        
460
+                            if ($curSchedule != "") {
461
+                            if (isset($rows[$locationsFieldsMapping['monthly_nth_wwhat']])) {
462
+                                if ($this->validateScheduleNthWhat($rows[$locationsFieldsMapping['monthly_nth_wwhat']])) {
463
+                                     $curSchedule .= '"what":'.$rows[$locationsFieldsMapping['monthly_nth_wwhat']].'}}';
426 464
                                 } else {
427
-                                    array_push($results['fail'], "$iRow --> Wrong monthly mode"); 
465
+                                    array_push($results['fail'], "$iRow --> Wrong parameter sched_nth_what"); 
428 466
                                     $curSchedule = "";
429 467
                                 }
430 468
                             } else {
431
-                                array_push($results['fail'], "$iRow --> The parameter sched_monthly_mode is not set"); 
469
+                                array_push($results['fail'], "$iRow --> The parameter sched_nth_what is not set"); 
432 470
                                 $curSchedule = "";
433 471
                             }
434
-                            
435
-                            if ($monthlyMode != "") {
436
-                                switch ($monthlyMode) {
437
-                                    case 'dates':
438
-                                        if (isset($rows[$locationsFieldsMapping['monthly_dates']])) {
439
-                                            if ($this->validateScheduleMonthlyDates($rows[$locationsFieldsMapping['monthly_dates']])) {
440
-                                                 $curSchedule .= '"dates":['.$rows[$locationsFieldsMapping['monthly_dates']].']}';
441
-                                            } else {
442
-                                                array_push($results['fail'], "$iRow --> Wrong monthly dates"); 
443
-                                                $curSchedule = "";
444
-                                            }
445
-                                        }
446
-                                        break;
447
-                                    case 'nth':
448
-                                        if (isset($rows[$locationsFieldsMapping['monthly_nth_n']])) {
449
-                                            if ($this->validateScheduleNthN($rows[$locationsFieldsMapping['monthly_nth_n']])) {
450
-                                                 $curSchedule .= '"nth":{"n":'.$rows[$locationsFieldsMapping['monthly_nth_n']].',';
451
-                                            } else {
452
-                                                array_push($results['fail'], "$iRow --> Wrong parameter sched_nth_n"); 
453
-                                                $curSchedule = "";
454
-                                            }
455
-                                        } else {
456
-                                            array_push($results['fail'], "$iRow --> The parameter sched_nth_n is not set"); 
457
-                                            $curSchedule = "";
458
-                                        }
459
-                                        
460
-                                        if ($curSchedule != "") {
461
-                                            if (isset($rows[$locationsFieldsMapping['monthly_nth_wwhat']])) {
462
-                                                if ($this->validateScheduleNthWhat($rows[$locationsFieldsMapping['monthly_nth_wwhat']])) {
463
-                                                     $curSchedule .= '"what":'.$rows[$locationsFieldsMapping['monthly_nth_wwhat']].'}}';
464
-                                                } else {
465
-                                                    array_push($results['fail'], "$iRow --> Wrong parameter sched_nth_what"); 
466
-                                                    $curSchedule = "";
467
-                                                }
468
-                                            } else {
469
-                                                array_push($results['fail'], "$iRow --> The parameter sched_nth_what is not set"); 
470
-                                                $curSchedule = "";
471
-                                            }
472
-                                        }
473
-                                        break;
474
-                                }
475 472
                             }
476 473
                             break;
477
-                        default:
478
-                            $curSchedule = "";
474
+                            }
475
+                            }
479 476
                             break;
477
+                    default:
478
+                        $curSchedule = "";
479
+                        break;
480 480
                     }
481 481
                 }
482 482
 
Please login to merge, or discard this patch.