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 ( 8e4cc8...6e1047 )
by Oleg
33s
created
src/Route4Me/Route4Me.php 1 patch
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,13 +33,17 @@  discard block
 block discarded – undo
33 33
 		$query = isset($options['query']) ?
34 34
             array_filter($options['query']) : array();
35 35
 
36
-		if (sizeof($query)==0) return null;
36
+		if (sizeof($query)==0) {
37
+			return null;
38
+		}
37 39
 
38 40
 		$body = isset($options['body']) ?
39 41
             array_filter($options['body']) : null;
40 42
 			
41 43
 		$fname = isset($body['strFilename']) ? $body['strFilename'] : '';
42
-		if ($fname=='') return null;
44
+		if ($fname=='') {
45
+			return null;
46
+		}
43 47
 
44 48
 		$rpath = realpath($fname);
45 49
 		
@@ -106,7 +110,9 @@  discard block
 block discarded – undo
106 110
         }
107 111
 
108 112
 		if (isset($options['HTTPHEADERS'])) {
109
-		    foreach ($options['HTTPHEADERS'] As $header) $headers[]=$header;
113
+		    foreach ($options['HTTPHEADERS'] As $header) {
114
+		    	$headers[]=$header;
115
+		    }
110 116
         }
111 117
         //self::simplePrint($headers); die("");
112 118
         $ch = curl_init();
@@ -119,7 +125,9 @@  discard block
 block discarded – undo
119 125
         //self::simplePrint($headers); die("");
120 126
 		$baseUrl=self::getBaseUrl();
121 127
 		
122
-		if (strpos($url,'move_route_destination')>0) $baseUrl='https://www.route4me.com';
128
+		if (strpos($url,'move_route_destination')>0) {
129
+			$baseUrl='https://www.route4me.com';
130
+		}
123 131
         $curlOpts = arraY(
124 132
             CURLOPT_URL            => $baseUrl. $url,
125 133
             CURLOPT_RETURNTRANSFER => true,
@@ -193,7 +201,9 @@  discard block
 block discarded – undo
193 201
 		
194 202
 		if ($isxml) {
195 203
 			$json = $jxml;
196
-		} else $json = json_decode($result, true);
204
+		} else {
205
+			$json = json_decode($result, true);
206
+		}
197 207
 		//var_dump($json); die("");
198 208
         if (200 == $code) {
199 209
             return $json;
@@ -278,7 +288,9 @@  discard block
 block discarded – undo
278 288
 		
279 289
 		if ($isxml) {
280 290
 			$json = $jxml;
281
-		} else $json = json_decode($result, true);
291
+		} else {
292
+			$json = json_decode($result, true);
293
+		}
282 294
 		
283 295
 		
284 296
         if (200 == $code) {
Please login to merge, or discard this patch.