@@ -324,8 +324,8 @@ |
||
324 | 324 | |
325 | 325 | self::assertNotNull($response); |
326 | 326 | self::assertInstanceOf(Order::class, Order::fromArray($response)); |
327 | - $this->assertEquals(93,$response['custom_user_fields'][0]['order_custom_field_id']); |
|
328 | - $this->assertEquals(false,$response['custom_user_fields'][0]['order_custom_field_value']); |
|
327 | + $this->assertEquals(93, $response['custom_user_fields'][0]['order_custom_field_id']); |
|
328 | + $this->assertEquals(false, $response['custom_user_fields'][0]['order_custom_field_value']); |
|
329 | 329 | |
330 | 330 | self::$createdOrders[] = $response; |
331 | 331 | } |
@@ -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']; |