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.
Completed
Branch Editing-Fixing (c4d168)
by Igor
03:30
created
examples/Optimizations/hybridOptimization.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 require $root . '/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\OptimizationProblem;
8
-use Route4Me\Route;
9 8
 use Route4Me\Route4Me;
10 9
 
11 10
 /* The example demonstrates process of creating a Hybrid Optimization using scheduling addresses and orders.
Please login to merge, or discard this patch.
src/Route4Me/Address.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Route4Me\Exception\BadParam;
5 5
 use Route4Me\Route4Me;
6
-use GuzzleHttp\Client;
7 6
 use Route4Me\Common;
8 7
 use Route4Me\Enum\Endpoint;
9 8
 
Please login to merge, or discard this patch.
src/Route4Me/OptimizationProblem.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Route4Me\OptimizationProblemParams;
8 8
 use Route4Me\Route;
9 9
 use Route4Me\Route4Me;
10
-use GuzzleHttp\Client;
11 10
 use Route4Me\Enum\Endpoint;
12 11
 
13 12
 class OptimizationProblem extends Common
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,9 @@  discard block
 block discarded – undo
164 164
         
165 165
         $optimizations = array();
166 166
             foreach($json as $optimization) {
167
-                if (gettype($optimization)!="array") continue;
167
+                if (gettype($optimization)!="array") {
168
+                	continue;
169
+                }
168 170
                 
169 171
                 foreach ($optimization as $otp1) {
170 172
                     $optimizations[] = $otp1;
@@ -180,7 +182,9 @@  discard block
 block discarded – undo
180 182
     
181 183
     public function getAddresses($opt_id)
182 184
     {
183
-        if ($opt_id == null) return null;
185
+        if ($opt_id == null) {
186
+        	return null;
187
+        }
184 188
         
185 189
         $params = array( "optimization_problem_id" => $opt_id );
186 190
         
Please login to merge, or discard this patch.
src/Route4Me/Route.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 
4 4
 use Route4Me\Common;
5 5
 use Route4Me\Address;
6
-use Route4Me\Exception\BadParam;
7 6
 use Route4Me\RouteParameters;
8 7
 use Route4Me\Route4Me;
9
-use GuzzleHttp\Client;
10 8
 use Route4Me\Enum\Endpoint;
11 9
 
12 10
 class Route extends Common
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
@@ -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/forward_geocode.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
 
20 20
 $fgResult = $fGeoCoding->forwardGeocoding($geocodingParameters);
21 21
 
22
-if ($geocodingParameters['strExportFormat'] == 'json') 
22
+if ($geocodingParameters['strExportFormat'] == 'json') {
23 23
     Route4Me::simplePrint($fgResult);
24
-else 
24
+} else {
25 25
     Route4Me::simplePrint($fgResult['destination']);
26
+}
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.