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
Push — master ( 63bb85...efda24 )
by Oleg
02:08 queued 13s
created
examples/optimizationWithCallbackUrl.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -29,20 +29,20 @@  discard block
 block discarded – undo
29 29
 $addresses = array();
30 30
 
31 31
 foreach ($json as $address) {
32
-    $addresses[] = Address::fromArray($address);
32
+	$addresses[] = Address::fromArray($address);
33 33
 }
34 34
 
35 35
 $parameters = RouteParameters::fromArray(array(
36
-    "algorithm_type"          => AlgorithmType::TSP,
37
-    "distance_unit"           => DistanceUnit::MILES,
38
-    "device_type"             => DeviceType::WEB,
39
-    "optimize"                => OptimizationType::DISTANCE,
40
-    "travel_mode"             => TravelMode::DRIVING,
41
-    "route_max_duration"      => 86400,
42
-    "vehicle_capacity"        => 1,
43
-    "vehicle_max_distance_mi" => 10000,
44
-    "rt"                      => true,
45
-    "optimized_callback_url"  => "https://requestb.in/1o6cgge1"
36
+	"algorithm_type"          => AlgorithmType::TSP,
37
+	"distance_unit"           => DistanceUnit::MILES,
38
+	"device_type"             => DeviceType::WEB,
39
+	"optimize"                => OptimizationType::DISTANCE,
40
+	"travel_mode"             => TravelMode::DRIVING,
41
+	"route_max_duration"      => 86400,
42
+	"vehicle_capacity"        => 1,
43
+	"vehicle_max_distance_mi" => 10000,
44
+	"rt"                      => true,
45
+	"optimized_callback_url"  => "https://requestb.in/1o6cgge1"
46 46
 ));
47 47
 
48 48
 $optimizationParams = new OptimizationProblemParams;
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 $problems = OptimizationProblem::optimize($optimizationParams);
53 53
 
54 54
 foreach ($problems as $problem) {
55
-    if (is_array($problem) || is_object($problem)) {
56
-        foreach ($problem as $key => $value) {
57
-            if (!is_object($value)) {
58
-                echo $key." --> ".$value."<br>";
59
-            }
60
-        }
61
-    }
55
+	if (is_array($problem) || is_object($problem)) {
56
+		foreach ($problem as $key => $value) {
57
+			if (!is_object($value)) {
58
+				echo $key." --> ".$value."<br>";
59
+			}
60
+		}
61
+	}
62 62
 }
Please login to merge, or discard this patch.