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.
Test Failed
Push — master ( 5793f9...e93048 )
by Oleg
04:32
created
examples/Optimizations/hybridOptimization.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 require $vdir.'/../vendor/autoload.php';
7 7
 
8 8
 use Route4Me\OptimizationProblem;
9
-use Route4Me\Route;
10 9
 use Route4Me\Route4Me;
11 10
 
12 11
 /* The example demonstrates process of creating a Hybrid Optimization using scheduling addresses and orders.
Please login to merge, or discard this patch.
Switch Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -77,62 +77,62 @@
 block discarded – undo
77 77
                     
78 78
                     if ($mode!='daily') {
79 79
                         switch ($mode) {
80
-                            case 'weekly':
81
-                                if (isset($rows[11])) {
82
-                                    if (AddressBookLocation::validateScheduleWeekDays($rows[11])) {
83
-                                         $schedule.='"weekdays":['.$rows[11].']}';
84
-                                    }
85
-                                    else {echo "$iRow --> Wrong weekdays <br>";$schedule="";}
80
+                        case 'weekly':
81
+                            if (isset($rows[11])) {
82
+                                if (AddressBookLocation::validateScheduleWeekDays($rows[11])) {
83
+                                     $schedule.='"weekdays":['.$rows[11].']}';
86 84
                                 }
87
-                                else {echo "$iRow --> The parameters sched_weekdays is not set <br>"; $schedule="";}
88
-                                break;
89
-                            case 'monthly':
90
-                                $monthlyMode="";
91
-                                if (isset($rows[12])) {
92
-                                    if (AddressBookLocation::validateScheduleMonthlyMode($rows[12])) {
93
-                                         $monthlyMode=$rows[12];
94
-                                         $schedule.='"mode": "'.$rows[12].'",';
95
-                                    }
96
-                                    else {echo "$iRow --> Wrong monthly mode <br>"; $schedule="";}
85
+                                else {echo "$iRow --> Wrong weekdays <br>";$schedule="";}
86
+                            }
87
+                            else {echo "$iRow --> The parameters sched_weekdays is not set <br>"; $schedule="";}
88
+                            break;
89
+                        case 'monthly':
90
+                            $monthlyMode="";
91
+                            if (isset($rows[12])) {
92
+                                if (AddressBookLocation::validateScheduleMonthlyMode($rows[12])) {
93
+                                     $monthlyMode=$rows[12];
94
+                                     $schedule.='"mode": "'.$rows[12].'",';
97 95
                                 }
98
-                                else {echo "$iRow --> The parameter sched_monthly_mode is not set <br>"; $schedule="";}
96
+                                else {echo "$iRow --> Wrong monthly mode <br>"; $schedule="";}
97
+                            }
98
+                            else {echo "$iRow --> The parameter sched_monthly_mode is not set <br>"; $schedule="";}
99 99
                                 
100
-                                if ($monthlyMode!="") {
101
-                                    switch ($monthlyMode) {
102
-                                        case 'dates':
103
-                                            if (isset($rows[13])) {
104
-                                                if (AddressBookLocation::validateScheduleMonthlyDates($rows[13])) {
105
-                                                     $schedule.='"dates":['.$rows[13].']}';
106
-                                                }
107
-                                                else {echo "$iRow --> Wrong monthly dates <br>"; $schedule="";}
108
-                                            }
109
-                                            break;
110
-                                        case 'nth':
111
-                                            if (isset($rows[16])) {
112
-                                                if (AddressBookLocation::validateScheduleNthN($rows[16])) {
113
-                                                     $schedule.='"nth":{"n":'.$rows[16].',';
114
-                                                }
115
-                                                else {echo "$iRow --> Wrong parameter sched_nth_n <br>"; $schedule="";}
116
-                                            }
117
-                                            else {echo "$iRow --> The parameter sched_nth_n is not set <br>"; $schedule="";}
118
-                                            
119
-                                            if ($schedule!="") {
120
-                                                if (isset($rows[17])) {
121
-                                                    if (AddressBookLocation::validateScheduleNthWhat($rows[17])) {
122
-                                                         $schedule.='"what":'.$rows[17].'}}';
123
-                                                    }
124
-                                                    else {echo "$iRow --> Wrong parameter sched_nth_what <br>"; $schedule="";}
125
-                                                }
126
-                                                else {echo "$iRow --> The parameter sched_nth_what is not set <br>"; $schedule="";}
127
-                                            }
100
+                            if ($monthlyMode!="") {
101
+                                switch ($monthlyMode) {
102
+                                case 'dates':
103
+                                if (isset($rows[13])) {
104
+                                if (AddressBookLocation::validateScheduleMonthlyDates($rows[13])) {
105
+                                     $schedule.='"dates":['.$rows[13].']}';
106
+                                }
107
+                                else {echo "$iRow --> Wrong monthly dates <br>"; $schedule="";}
108
+                                }
109
+                                break;
110
+                                case 'nth':
111
+                                if (isset($rows[16])) {
112
+                                if (AddressBookLocation::validateScheduleNthN($rows[16])) {
113
+                                     $schedule.='"nth":{"n":'.$rows[16].',';
114
+                                }
115
+                                else {echo "$iRow --> Wrong parameter sched_nth_n <br>"; $schedule="";}
116
+                                }
117
+                                else {echo "$iRow --> The parameter sched_nth_n is not set <br>"; $schedule="";}
128 118
                                             
129
-                                            break;
119
+                                if ($schedule!="") {
120
+                                if (isset($rows[17])) {
121
+                                    if (AddressBookLocation::validateScheduleNthWhat($rows[17])) {
122
+                                         $schedule.='"what":'.$rows[17].'}}';
130 123
                                     }
124
+                                    else {echo "$iRow --> Wrong parameter sched_nth_what <br>"; $schedule="";}
125
+                                }
126
+                                else {echo "$iRow --> The parameter sched_nth_what is not set <br>"; $schedule="";}
131 127
                                 }
128
+                                            
132 129
                                 break;
133
-                            default:
134
-                                $schedule=="";
130
+                                }
131
+                                }
135 132
                                 break;
133
+                        default:
134
+                            $schedule=="";
135
+                            break;
136 136
                         }
137 137
                         
138 138
                     }
Please login to merge, or discard this patch.