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 ( 210e2d...dface1 )
by Oleg
05:06
created
examples/MemberConfiguration/get_account_config_key_data.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 		if (is_array($value))
26 26
 		{
27 27
 			Route4Me::simplePrint($value);
28
-		}
29
-		else 
28
+		} else 
30 29
 		{
31 30
 			echo "$key => $value <br>";
32 31
 		}
Please login to merge, or discard this patch.
examples/multiple_depot_with_time_window.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
 	if (is_string($value))
52 52
 	{
53 53
 		echo $key." --> ".$value."<br>";
54
-	}
55
-	else 
54
+	} else 
56 55
 	{
57 56
 		echo "************ $key ************* <br>";
58 57
 		Route4Me::simplePrint((array)$value);
Please login to merge, or discard this patch.
examples/Routes/GetRoutePathPoints.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,9 @@
 block discarded – undo
28 28
 		foreach ($routeResults['addresses'] as $key => $address) {
29 29
 			$araddress = (array)$address;
30 30
 
31
-			if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
31
+			if (isset($araddress['route_destination_id'])) {
32
+				echo "route_destination_id=".$araddress['route_destination_id']."<br>";
33
+			}
32 34
 			
33 35
 			if (isset($araddress['path_to_next'])) {
34 36
 				echo "path_to_next:<br>";
Please login to merge, or discard this patch.
examples/Tracking/TrackDeviceLastLocationHistory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,9 +43,10 @@
 block discarded – undo
43 43
 	
44 44
 	$result = $route->GetLastLocation($params);
45 45
 	//var_dump($result);die("");
46
-	if (isset($result->tracking_history))
47
-	foreach ($result->tracking_history as $history) {
46
+	if (isset($result->tracking_history)) {
47
+		foreach ($result->tracking_history as $history) {
48 48
 		echo "Speed --> ".$history['s']."<br>";
49
+	}
49 50
 		echo "course --> ".$history['d']."<br>";
50 51
 		echo "Timestamp --> ".$history['ts_friendly']."<br>";
51 52
 		echo "Latitude --> ".$history['lt']."<br>";
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblem.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,9 @@  discard block
 block discarded – undo
155 155
 		
156 156
 		$optimizations = array();
157 157
             foreach($json as $optimization) {
158
-				if (gettype($optimization)!="array") continue;
158
+				if (gettype($optimization)!="array") {
159
+					continue;
160
+				}
159 161
 				foreach ($optimization as $otp1) {
160 162
 					$optimizations[] = $otp1;
161 163
 				}
@@ -169,7 +171,9 @@  discard block
 block discarded – undo
169 171
 	
170 172
 	public function getAddresses($opt_id)
171 173
 	{
172
-		if ($opt_id==null) return null;
174
+		if ($opt_id==null) {
175
+			return null;
176
+		}
173 177
 		
174 178
 		$params = array( "optimization_problem_id" => $opt_id );
175 179
 		
Please login to merge, or discard this patch.
src/Route4Me/Route.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,8 +249,9 @@
 block discarded – undo
249 249
 			if (is_array($rRoute)) 
250 250
 			{
251 251
 				return $rRoute["route_id"];
252
+			} else {
253
+				return null;
252 254
 			}
253
-			else return null;
254 255
 	}
255 256
 
256 257
     public function update()
Please login to merge, or discard this patch.
src/Route4Me/curl_http_client.php 1 patch
Braces   +17 added lines, -15 removed lines patch added patch discarded remove patch
@@ -118,8 +118,7 @@  discard block
 block discarded – undo
118 118
 				echo "Error message: " .curl_error($this->ch)."\n";
119 119
 			}
120 120
 			return false;
121
-		}
122
-		else
121
+		} else
123 122
         {
124 123
 			return $result;
125 124
 		}
@@ -164,8 +163,7 @@  discard block
 block discarded – undo
164 163
 				echo "Error message: " .curl_error($this->ch)."\n";
165 164
 			}
166 165
 			return false;
167
-		}
168
-		else
166
+		} else
169 167
 		{
170 168
 			return $result;
171 169
 		}
@@ -210,8 +208,7 @@  discard block
 block discarded – undo
210 208
 				echo "Error message: " .curl_error($this->ch)."\n";
211 209
 			}
212 210
 			return false;
213
-		}
214
-		else
211
+		} else
215 212
 		{
216 213
 			return true;
217 214
 		}
@@ -278,7 +275,10 @@  discard block
 block discarded – undo
278 275
 		{
279 276
 			foreach($file_field_array as $var_name => $var_value)
280 277
 			{
281
-				if(strpos(PHP_OS, "WIN") !== false) $var_value = str_replace("/", "\\", $var_value); // win hack
278
+				if(strpos(PHP_OS, "WIN") !== false) {
279
+					$var_value = str_replace("/", "\\", $var_value);
280
+				}
281
+				// win hack
282 282
 				$file_field_array[$var_name] = "@".$var_value;
283 283
 			}
284 284
 		}
@@ -296,8 +296,7 @@  discard block
 block discarded – undo
296 296
 				echo "Error message: " .curl_error($this->ch)."\n";
297 297
 			}
298 298
 			return false;
299
-		}
300
-		else
299
+		} else
301 300
 		{
302 301
 			return $result;
303 302
 		}
@@ -406,12 +405,15 @@  discard block
 block discarded – undo
406 405
             return $data;
407 406
         }
408 407
         $last_url = parse_url(curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
409
-        if (empty($url['scheme']))
410
-            $url['scheme'] = $last_url['scheme'];
411
-        if (empty($url['host']))
412
-            $url['host'] = $last_url['host'];
413
-        if (empty($url['path']))
414
-            $url['path'] = $last_url['path'];
408
+        if (empty($url['scheme'])) {
409
+                    $url['scheme'] = $last_url['scheme'];
410
+        }
411
+        if (empty($url['host'])) {
412
+                    $url['host'] = $last_url['host'];
413
+        }
414
+        if (empty($url['path'])) {
415
+                    $url['path'] = $last_url['path'];
416
+        }
415 417
         $new_url = $url['scheme'] . '://' . $url['host'] . $url['path'] . (!empty($url['query'])?'?'.$url['query']:'');
416 418
         //echo "Being redirected to $new_url\n";
417 419
         curl_setopt($ch, CURLOPT_URL, $new_url);
Please login to merge, or discard this patch.
examples/SingleDriverMultipleTimeWindows.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
 	if (is_string($value))
52 52
 	{
53 53
 		echo $key." --> ".$value."<br>";
54
-	}
55
-	else 
54
+	} else 
56 55
 	{
57 56
 		echo "************ $key ************* <br>";
58 57
 		Route4Me::simplePrint((array)$value);
Please login to merge, or discard this patch.
examples/SingleDepotMultipleDriverNoTimeWindow.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
 	if (is_string($value))
52 52
 	{
53 53
 		echo $key." --> ".$value."<br>";
54
-	}
55
-	else 
54
+	} else 
56 55
 	{
57 56
 		echo "************ $key ************* <br>";
58 57
 		Route4Me::simplePrint((array)$value);
Please login to merge, or discard this patch.