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 ( 6c805f...bce16d )
by Igor
09:12 queued 14s
created
examples/Optimizations/RemoveOptimization.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
 
23 23
 // Remove an optimization
24 24
 $params = [
25
-    'optimization_problem_ids' => [
26
-        '0' => $optimizationProblemId,
27
-    ],
28
-    'redirect' => 0,
25
+	'optimization_problem_ids' => [
26
+		'0' => $optimizationProblemId,
27
+	],
28
+	'redirect' => 0,
29 29
 ];
30 30
 
31 31
 $result = $optimization->removeOptimization($params);
Please login to merge, or discard this patch.
examples/Optimizations/reoptimization.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 // Reoptimize an optimization
21 21
 $problemParams = [
22
-    'optimization_problem_id' => $optimizationProblemId,
22
+	'optimization_problem_id' => $optimizationProblemId,
23 23
 ];
24 24
 
25 25
 $problem = OptimizationProblem::reoptimize($problemParams);
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimizationsFromDateRange.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
 Route4Me::setApiKey(Constants::API_KEY);
10 10
 
11 11
 $optimizationParameters = [
12
-    'start_date' => '2019-10-15',
13
-    'end_date'   => '2019-10-20'
12
+	'start_date' => '2019-10-15',
13
+	'end_date'   => '2019-10-20'
14 14
 ];
15 15
 
16 16
 $optimizationProblem = new OptimizationProblem();
@@ -18,5 +18,5 @@  discard block
 block discarded – undo
18 18
 $optimizations = $optimizationProblem->get($optimizationParameters);
19 19
 
20 20
 foreach ($optimizations as $optimization) {
21
-    echo 'Optimization problem ID -> '.$optimization->optimization_problem_id.'<br>';
21
+	echo 'Optimization problem ID -> '.$optimization->optimization_problem_id.'<br>';
22 22
 }
Please login to merge, or discard this patch.
examples/MultipleDepotMultipleDriverWith24StopsTimeWindow.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -21,22 +21,22 @@  discard block
 block discarded – undo
21 21
 
22 22
 $addresses = [];
23 23
 foreach ($json as $address) {
24
-    $addresses[] = Address::fromArray($address);
24
+	$addresses[] = Address::fromArray($address);
25 25
 }
26 26
 
27 27
 $parameters = RouteParameters::fromArray([
28
-    'algorithm_type'            => Algorithmtype::CVRP_TW_SD,
29
-    'route_name'                => 'Multiple Depot, Multiple Driver with 24 Stops, Time Window',
30
-    'route_date'                => time() + 24 * 60 * 60,
31
-    'route_time'                => 60 * 60 * 7,
32
-    'distance_unit'             => DistanceUnit::MILES,
33
-    'device_type'               => DeviceType::WEB,
34
-    'optimize'                  => OptimizationType::DISTANCE,
35
-    'metric'                    => Metric::GEODESIC,
36
-    'route_max_duration'        => 86400,
37
-    'travel_mode'               => TravelMode::DRIVING,
38
-    'vehicle_capacity'          => 1,
39
-    'vehicle_max_distance_mi'   => 10000,
28
+	'algorithm_type'            => Algorithmtype::CVRP_TW_SD,
29
+	'route_name'                => 'Multiple Depot, Multiple Driver with 24 Stops, Time Window',
30
+	'route_date'                => time() + 24 * 60 * 60,
31
+	'route_time'                => 60 * 60 * 7,
32
+	'distance_unit'             => DistanceUnit::MILES,
33
+	'device_type'               => DeviceType::WEB,
34
+	'optimize'                  => OptimizationType::DISTANCE,
35
+	'metric'                    => Metric::GEODESIC,
36
+	'route_max_duration'        => 86400,
37
+	'travel_mode'               => TravelMode::DRIVING,
38
+	'vehicle_capacity'          => 1,
39
+	'vehicle_max_distance_mi'   => 10000,
40 40
 ]);
41 41
 
42 42
 $optimizationParams = new OptimizationProblemParams();
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 $problem = OptimizationProblem::optimize($optimizationParams);
47 47
 
48 48
 foreach ((array) $problem as $key => $value) {
49
-    if (is_string($value)) {
50
-        echo $key.' --> '.$value.'<br>';
51
-    } else {
52
-        echo "************ $key ************* <br>";
53
-        Route4Me::simplePrint((array) $value, true);
54
-        echo '******************************* <br>';
55
-    }
49
+	if (is_string($value)) {
50
+		echo $key.' --> '.$value.'<br>';
51
+	} else {
52
+		echo "************ $key ************* <br>";
53
+		Route4Me::simplePrint((array) $value, true);
54
+		echo '******************************* <br>';
55
+	}
56 56
 }
Please login to merge, or discard this patch.
examples/multiple_depots_separate_section.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 $addresses = [];
23 23
 foreach ($jsonAddresses as $address) {
24
-    $addresses[] = Address::fromArray($address);
24
+	$addresses[] = Address::fromArray($address);
25 25
 }
26 26
 
27 27
 $jsonDepots = json_decode(file_get_contents('./depots.json'), true);
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
 // List of depots
30 30
 $depots = [];
31 31
 foreach ($jsonDepots as $depot) {
32
-    $depots[] = Address::fromArray($depot);
32
+	$depots[] = Address::fromArray($depot);
33 33
 }
34 34
 
35 35
 $parameters = RouteParameters::fromArray([
36
-    'route_name'                => 'Multiple Depots Seprate Section '.date('Y-m-d H:i'),
37
-    'algorithm_type'            => AlgorithmType::CVRP_TW_MD,
38
-    'distance_unit'             => DistanceUnit::MILES,
39
-    'device_type'               => DeviceType::WEB,
40
-    'optimize'                  => OptimizationType::TIME,
41
-    'metric'                    => Metric::GEODESIC,
42
-    'route_max_duration'        => 86400 * 2,
43
-    'travel_mode'               => TravelMode::DRIVING,
44
-    'vehicle_capacity'          => 50,
45
-    'vehicle_max_distance_mi'   => 10000,
46
-    'parts'                     => 50,
36
+	'route_name'                => 'Multiple Depots Seprate Section '.date('Y-m-d H:i'),
37
+	'algorithm_type'            => AlgorithmType::CVRP_TW_MD,
38
+	'distance_unit'             => DistanceUnit::MILES,
39
+	'device_type'               => DeviceType::WEB,
40
+	'optimize'                  => OptimizationType::TIME,
41
+	'metric'                    => Metric::GEODESIC,
42
+	'route_max_duration'        => 86400 * 2,
43
+	'travel_mode'               => TravelMode::DRIVING,
44
+	'vehicle_capacity'          => 50,
45
+	'vehicle_max_distance_mi'   => 10000,
46
+	'parts'                     => 50,
47 47
 ]);
48 48
 
49 49
 $optimizationParams = new OptimizationProblemParams();
Please login to merge, or discard this patch.
examples/get_route_manifest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
 
19 19
 // Get route manifest
20 20
 $params = [
21
-    'directions' => 1,
22
-    'route_id'   => $route_id,
21
+	'directions' => 1,
22
+	'route_id'   => $route_id,
23 23
 ];
24 24
 
25 25
 $route = Route::getRoutes($params);
26 26
 
27 27
 foreach ($route->addresses as $addr1) {
28
-    Route4Me::simplePrint((array) $addr1, true);
29
-    echo '<br>';
28
+	Route4Me::simplePrint((array) $addr1, true);
29
+	echo '<br>';
30 30
 }
Please login to merge, or discard this patch.
examples/multiple_depot_with_time_window.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -22,23 +22,23 @@  discard block
 block discarded – undo
22 22
 $addresses = [];
23 23
 
24 24
 foreach ($json as $address) {
25
-    $addresses[] = Address::fromArray($address);
25
+	$addresses[] = Address::fromArray($address);
26 26
 }
27 27
 
28 28
 $parameters = RouteParameters::fromArray([
29
-    'algorithm_type'            => Algorithmtype::CVRP_TW_SD,
30
-    'route_name'                => 'Multiple Depot, Multiple Driver, Time Window',
31
-    'route_date'                => time() + 24 * 60 * 60,
32
-    'route_time'                => 60 * 60 * 7,
33
-    'rt'                        => true,
34
-    'distance_unit'             => DistanceUnit::MILES,
35
-    'device_type'               => DeviceType::WEB,
36
-    'optimize'                  => OptimizationType::TIME,
37
-    'metric'                    => Metric::GEODESIC,
38
-    'route_max_duration'        => 86400 * 3,
39
-    'travel_mode'               => TravelMode::DRIVING,
40
-    'vehicle_capacity'          => 99,
41
-    'vehicle_max_distance_mi'   => 99999,
29
+	'algorithm_type'            => Algorithmtype::CVRP_TW_SD,
30
+	'route_name'                => 'Multiple Depot, Multiple Driver, Time Window',
31
+	'route_date'                => time() + 24 * 60 * 60,
32
+	'route_time'                => 60 * 60 * 7,
33
+	'rt'                        => true,
34
+	'distance_unit'             => DistanceUnit::MILES,
35
+	'device_type'               => DeviceType::WEB,
36
+	'optimize'                  => OptimizationType::TIME,
37
+	'metric'                    => Metric::GEODESIC,
38
+	'route_max_duration'        => 86400 * 3,
39
+	'travel_mode'               => TravelMode::DRIVING,
40
+	'vehicle_capacity'          => 99,
41
+	'vehicle_max_distance_mi'   => 99999,
42 42
 ]);
43 43
 
44 44
 $optimizationParams = new OptimizationProblemParams();
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 $problem = OptimizationProblem::optimize($optimizationParams);
49 49
 
50 50
 foreach ((array) $problem as $key => $value) {
51
-    if (is_string($value)) {
52
-        echo $key.' --> '.$value.'<br>';
53
-    } else {
54
-        echo "************ $key ************* <br>";
55
-        Route4Me::simplePrint((array) $value, true);
56
-        echo '******************************* <br>';
57
-    }
51
+	if (is_string($value)) {
52
+		echo $key.' --> '.$value.'<br>';
53
+	} else {
54
+		echo "************ $key ************* <br>";
55
+		Route4Me::simplePrint((array) $value, true);
56
+		echo '******************************* <br>';
57
+	}
58 58
 }
Please login to merge, or discard this patch.
examples/SingleDriverMultipleTimeWindows.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -19,18 +19,18 @@  discard block
 block discarded – undo
19 19
 
20 20
 $addresses = [];
21 21
 foreach ($json as $address) {
22
-    $addresses[] = Address::fromArray($address);
22
+	$addresses[] = Address::fromArray($address);
23 23
 }
24 24
 
25 25
 $parameters = RouteParameters::fromArray([
26
-    'algorithm_type'    => Algorithmtype::TSP,
27
-    'route_name'        => 'Single Driver Multiple TimeWindows 12 Stops',
28
-    'route_date'        => time() + 24 * 60 * 60,
29
-    'route_time'        => 5 * 3600 + 30 * 60,
30
-    'distance_unit'     => DistanceUnit::MILES,
31
-    'device_type'       => DeviceType::WEB,
32
-    'optimize'          => OptimizationType::DISTANCE,
33
-    'metric'            => Metric::GEODESIC,
26
+	'algorithm_type'    => Algorithmtype::TSP,
27
+	'route_name'        => 'Single Driver Multiple TimeWindows 12 Stops',
28
+	'route_date'        => time() + 24 * 60 * 60,
29
+	'route_time'        => 5 * 3600 + 30 * 60,
30
+	'distance_unit'     => DistanceUnit::MILES,
31
+	'device_type'       => DeviceType::WEB,
32
+	'optimize'          => OptimizationType::DISTANCE,
33
+	'metric'            => Metric::GEODESIC,
34 34
 ]);
35 35
 
36 36
 $optimizationParams = new OptimizationProblemParams();
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 $problem = OptimizationProblem::optimize($optimizationParams);
41 41
 
42 42
 foreach ((array) $problem as $key => $value) {
43
-    if (is_string($value)) {
44
-        echo $key.' --> '.$value.'<br>';
45
-    } else {
46
-        echo "************ $key ************* <br>";
47
-        Route4Me::simplePrint((array) $value, true);
48
-        echo '******************************* <br>';
49
-    }
43
+	if (is_string($value)) {
44
+		echo $key.' --> '.$value.'<br>';
45
+	} else {
46
+		echo "************ $key ************* <br>";
47
+		Route4Me::simplePrint((array) $value, true);
48
+		echo '******************************* <br>';
49
+	}
50 50
 }
Please login to merge, or discard this patch.
examples/OptimizationWithBundledAddresses.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 $addresses = [];
23 23
 foreach ($json as $address) {
24
-    $addresses[] = Address::fromArray($address);
24
+	$addresses[] = Address::fromArray($address);
25 25
 }
26 26
 
27 27
 $bundling = new AddressBundling();
@@ -32,15 +32,15 @@  discard block
 block discarded – undo
32 32
 $bundling->service_time_rules->additional_items_mode = Enum\AddressBundlingModes\AdditionalItemsMode::KEEP_ORIGINAL;
33 33
 
34 34
 $parameters = RouteParameters::fromArray([
35
-    'algorithm_type'    => Algorithmtype::TSP,
36
-    'route_name'        => 'Single Driver Multiple TimeWindows 12 Stops',
37
-    'route_date'        => time() + 24 * 60 * 60,
38
-    'route_time'        => 5 * 3600 + 30 * 60,
39
-    'distance_unit'     => DistanceUnit::MILES,
40
-    'device_type'       => DeviceType::WEB,
41
-    'optimize'          => OptimizationType::DISTANCE,
42
-    'metric'            => Metric::GEODESIC,
43
-    'bundling'          => $bundling,
35
+	'algorithm_type'    => Algorithmtype::TSP,
36
+	'route_name'        => 'Single Driver Multiple TimeWindows 12 Stops',
37
+	'route_date'        => time() + 24 * 60 * 60,
38
+	'route_time'        => 5 * 3600 + 30 * 60,
39
+	'distance_unit'     => DistanceUnit::MILES,
40
+	'device_type'       => DeviceType::WEB,
41
+	'optimize'          => OptimizationType::DISTANCE,
42
+	'metric'            => Metric::GEODESIC,
43
+	'bundling'          => $bundling,
44 44
 ]);
45 45
 
46 46
 $optimizationParams = new OptimizationProblemParams();
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 $problem = OptimizationProblem::optimize($optimizationParams);
51 51
 
52 52
 foreach ((array) $problem as $key => $value) {
53
-    if (is_string($value)) {
54
-        echo $key.' --> '.$value.'<br>';
55
-    } else {
56
-        echo "************ $key ************* <br>";
57
-        Route4Me::simplePrint((array) $value, true);
58
-        echo '******************************* <br>';
59
-    }
53
+	if (is_string($value)) {
54
+		echo $key.' --> '.$value.'<br>';
55
+	} else {
56
+		echo "************ $key ************* <br>";
57
+		Route4Me::simplePrint((array) $value, true);
58
+		echo '******************************* <br>';
59
+	}
60 60
 }
Please login to merge, or discard this patch.