@@ -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']; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $address_id = $createdContact['address_id']; |
29 | 29 | } |
30 | 30 | |
31 | -assert($address_id != -1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
31 | +assert($address_id!=-1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
32 | 32 | |
33 | 33 | echo 'Address Book Location with address_id = '.strval($address_id).' was successfully added<br>'; |
34 | 34 |