@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $zones = [["ZONE 01"], ["ZONE 02"], ["ZONE 03"]]; |
47 | 47 | |
48 | - for($i = 0; $i < 30; ++$i) |
|
48 | + for ($i = 0; $i<30; ++$i) |
|
49 | 49 | { |
50 | 50 | $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([ |
51 | 51 | 'tags' => [$zones[$i % 3]], |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | public static function tearDownAfterClass() |
75 | 75 | { |
76 | - if(!is_null(self::$problem->optimization_problem_id)) |
|
76 | + if (!is_null(self::$problem->optimization_problem_id)) |
|
77 | 77 | { |
78 | 78 | $params = [ |
79 | 79 | 'optimization_problem_ids' => ['0' => self::$problem->optimization_problem_id], |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | $result = self::$problem->removeOptimization($params); |
84 | 84 | |
85 | - if ($result != null && $result['status'] == true) { |
|
85 | + if ($result!=null && $result['status']==true) { |
|
86 | 86 | echo "The test optimization was removed <br>"; |
87 | 87 | } else { |
88 | 88 | echo "Cannot remove the test optimization <br>"; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $routeResults = $route->getRoutes($RouteParameters); |
19 | 19 | |
20 | 20 | foreach ($routeResults as $routeResult) { |
21 | - $results = (array) $routeResult; |
|
21 | + $results = (array)$routeResult; |
|
22 | 22 | |
23 | 23 | Route4Me::simplePrint($results); |
24 | 24 |
@@ -38,4 +38,4 @@ |
||
38 | 38 | |
39 | 39 | $result = $route->update(); |
40 | 40 | |
41 | -Route4Me::simplePrint((array) $result->parameters); |
|
41 | +Route4Me::simplePrint((array)$result->parameters); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | assert(!is_null($route_id), "Cannot retrieve a random route ID"); |
21 | 21 | |
22 | 22 | // Get a random address ID from selected route above |
23 | -$addressRand = (array) $route->GetRandomAddressFromRoute($route_id); |
|
23 | +$addressRand = (array)$route->GetRandomAddressFromRoute($route_id); |
|
24 | 24 | |
25 | 25 | $route->route_id = $route_id; |
26 | 26 | $route->route_destination_id = $addressRand['route_destination_id']; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $avoidanceZone = new AvoidanceZone(); |
32 | 32 | |
33 | -$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
33 | +$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
34 | 34 | |
35 | 35 | assert(isset($result), 'Failed to create new Avoidance Zone'); |
36 | 36 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $avoidanceZone = new AvoidanceZone(); |
32 | 32 | |
33 | -$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
33 | +$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
34 | 34 | |
35 | 35 | assert(isset($result), 'Failed to create new Avoidance Zone'); |
36 | 36 |
@@ -40,4 +40,4 @@ |
||
40 | 40 | |
41 | 41 | $problem = OptimizationProblem::optimize($optimizationParams); |
42 | 42 | |
43 | -Route4Me::simplePrint((array) $problem, true); |
|
43 | +Route4Me::simplePrint((array)$problem, true); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $territory = new Territory(); |
32 | 32 | |
33 | -$result = (array) $territory->addTerritory($TerritoryParameters); |
|
33 | +$result = (array)$territory->addTerritory($TerritoryParameters); |
|
34 | 34 | |
35 | 35 | assert(!is_null($result), "Cannot create a territory"); |
36 | 36 | assert(isset($result['territory_id']), "Cannot create a territory"); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $randomLocation = $abLocation->getRandomAddressBookLocation($AddressBookLocationParameters); |
20 | 20 | |
21 | -if (assert(null != $randomLocation, 'Cannot get a randoma address book location')); |
|
21 | +if (assert(null!=$randomLocation, 'Cannot get a randoma address book location')); |
|
22 | 22 | |
23 | 23 | // Get the address book location by address_id |
24 | 24 | $addressID = $randomLocation['address_id']; |