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 ( b54c2e...66b33a )
by Oleg
01:58
created
examples/Tracking/TrackDeviceLastLocationHistory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,10 @@
 block discarded – undo
57 57
 
58 58
 $result = $route->GetLastLocation($params);
59 59
 
60
-if (isset($result->tracking_history))
61
-foreach ($result->tracking_history as $history) {
60
+if (isset($result->tracking_history)) {
61
+	foreach ($result->tracking_history as $history) {
62 62
     echo "Speed --> ".$history['s']."<br>";
63
+}
63 64
     echo "course --> ".$history['d']."<br>";
64 65
     echo "Timestamp --> ".$history['ts_friendly']."<br>";
65 66
     echo "Latitude --> ".$history['lt']."<br>";
Please login to merge, or discard this patch.
examples/MultipleDepotMultipleDriverWith24StopsTimeWindow.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
     if (is_string($value))
55 55
     {
56 56
         echo $key." --> ".$value."<br>";
57
-    }
58
-    else 
57
+    } else 
59 58
     {
60 59
         echo "************ $key ************* <br>";
61 60
         Route4Me::simplePrint((array)$value, true);
Please login to merge, or discard this patch.
examples/Geocoding/reverse_geocode.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         Route4Me::simplePrint($dest);
25 25
         echo "<br>";
26 26
     }
27
-}  else {
27
+} else {
28 28
     foreach ($fgResult['destination'] as $dest) {
29 29
         Route4Me::simplePrint($dest);
30 30
         echo "<br>";
Please login to merge, or discard this patch.
examples/Notes/GetAddressNotes.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,5 +59,7 @@
 block discarded – undo
59 59
     echo "========== Notes ==================<br>";
60 60
     echo "note_id --> ".$note['note_id']."<br>";
61 61
     $content = isset($note['contents']) ? $note['contents'] : "";
62
-    if (strlen($content)>0) echo "contents --> $content"."<br>";
63
-}
62
+    if (strlen($content)>0) {
63
+    	echo "contents --> $content"."<br>";
64
+    }
65
+    }
Please login to merge, or discard this patch.
examples/Routes/MergeRoutes.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,10 @@
 block discarded – undo
29 29
     
30 30
     $count++;
31 31
     
32
-    if ($count>5) break; // prevent from the infinite cycle, if there are less than 2 routes.
32
+    if ($count>5) {
33
+    	break;
34
+    }
35
+    // prevent from the infinite cycle, if there are less than 2 routes.
33 36
 }
34 37
 
35 38
 echo "Route ID 1 -> $route_id1 <br> Route ID 2 -> $route_id2 <br>";
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
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
     foreach ($routeResults['addresses'] as $key => $address) {
33 33
         $araddress = (array)$address;
34 34
 
35
-        if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
35
+        if (isset($araddress['route_destination_id'])) {
36
+        	echo "route_destination_id=".$araddress['route_destination_id']."<br>";
37
+        }
36 38
         
37 39
         if (isset($araddress['path_to_next'])) {
38 40
             echo "path_to_next:<br>";
Please login to merge, or discard this patch.
src/Route4Me/Member.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,18 +163,26 @@
 block discarded – undo
163 163
     {
164 164
         $members = self::getUsers();
165 165
         
166
-        if (is_null($members)) return null;
167
-        if (!isset($members['results'])) return null;
166
+        if (is_null($members)) {
167
+        	return null;
168
+        }
169
+        if (!isset($members['results'])) {
170
+        	return null;
171
+        }
168 172
         
169 173
         $memberIDs = array();
170 174
         
171 175
         foreach ($members['results'] as $memb) {
172 176
             if (isset($memb['member_id']) && isset($memb['member_type'])) {
173
-                if ($memberType==$memb['member_type']) $memberIDs[]=$memb['member_id'];
177
+                if ($memberType==$memb['member_type']) {
178
+                	$memberIDs[]=$memb['member_id'];
179
+                }
174 180
             }
175 181
         }
176 182
         
177
-        if (sizeof($memberIDs)<1) return null;
183
+        if (sizeof($memberIDs)<1) {
184
+        	return null;
185
+        }
178 186
         
179 187
         $randomIndex = rand(0, sizeof($memberIDs)-1);
180 188
         
Please login to merge, or discard this patch.
examples/Routes/GetRoutePathPointsCompressed.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,9 @@
 block discarded – undo
32 32
     foreach ($routeResults['addresses'] as $key => $address) {
33 33
         $araddress = (array)$address;
34 34
 
35
-        if (isset($araddress['route_destination_id'])) echo "route_destination_id=".$araddress['route_destination_id']."<br>";
35
+        if (isset($araddress['route_destination_id'])) {
36
+        	echo "route_destination_id=".$araddress['route_destination_id']."<br>";
37
+        }
36 38
         
37 39
         if (isset($araddress['path_to_next'])) {
38 40
             echo "path_to_next:<br>";
Please login to merge, or discard this patch.
src/Route4Me/Route4Me.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
             } else {
199 199
                 return $json;
200 200
             }
201
-        }  elseif (409==$code) {
201
+        } elseif (409==$code) {
202 202
             throw new ApiError('Wrong API key');
203 203
         } else {
204 204
             throw new ApiError('Something wrong');
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -207,12 +207,16 @@  discard block
 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
     {
213 214
         return @json_decode(@json_encode($object), 1);
214 215
     }
215 216
 
217
+    /**
218
+     * @param string $url
219
+     */
216 220
     public static function makeUrlRequst($url, $options) {
217 221
         $method = isset($options['method']) ? $options['method'] : 'GET';
218 222
         $query = isset($options['query']) ?
@@ -377,6 +381,7 @@  discard block
 block discarded – undo
377 381
      * Returns an array of the object properties
378 382
      * @param $object: An object.
379 383
      * @param $exclude: array of the object parameters to be excluded from the returned array.
384
+     * @param string[] $exclude
380 385
      */
381 386
     public static function getObjectProperties($object, $exclude)
382 387
     {
@@ -397,6 +402,7 @@  discard block
 block discarded – undo
397 402
      * Returns url path generated from the array of the fields and parameters.
398 403
      * @param $allFields; array of the paossible fields (parameter names).
399 404
      * @param $params: input parameters (array or object).
405
+     * @param string[] $allFields
400 406
      */
401 407
     public static function generateUrlPath($allFields, $params)
402 408
     {
Please login to merge, or discard this patch.