@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $geocoding = new Geocoding(); |
| 21 | 21 | |
| 22 | - foreach($params as $key => $value) { |
|
| 22 | + foreach ($params as $key => $value) { |
|
| 23 | 23 | if (property_exists($geocoding, $key)) { |
| 24 | 24 | $geocoding->{$key} = $value; |
| 25 | 25 | } |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | |
| 172 | 172 | public function mergeRoutes($params) |
| 173 | 173 | { |
| 174 | - $allBodyFields = array('route_ids', 'depot_address', 'remove_origin', 'depot_lat', 'depot_lng'); |
|
| 174 | + $allBodyFields = array('route_ids', 'depot_address', 'remove_origin', 'depot_lat', 'depot_lng'); |
|
| 175 | 175 | |
| 176 | 176 | $result = Route4Me::makeRequst(array( |
| 177 | 177 | 'url' => Endpoint::ROUTES_MERGE, |
@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 14 | 14 | |
| 15 | 15 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
| 16 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
| 17 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
| 16 | + "first_name" => "Test FirstName ".strval(rand(10000, 99999)), |
|
| 17 | + "address_1" => "Test Address1 ".strval(rand(10000, 99999)), |
|
| 18 | 18 | "cached_lat" => 38.024654, |
| 19 | 19 | "cached_lng" => -77.338814 |
| 20 | 20 | )); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $address_id = $abcResult["address_id"]; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | -assert($address_id != -1, "Cannot create an address book location. <br><br>"); |
|
| 34 | +assert($address_id!=-1, "Cannot create an address book location. <br><br>"); |
|
| 35 | 35 | |
| 36 | 36 | echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = ".$abcResult['first_name']."</b> was successfully added<br>"; |
| 37 | 37 | |
@@ -41,6 +41,6 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | assert(isset($abcResult['first_name']), "Cannot update the address book location. <br><br>"); |
| 43 | 43 | |
| 44 | -assert($abcResult['first_name'] == 'Test Firstname Updated', "Cannot update the address book location. <br><br>"); |
|
| 44 | +assert($abcResult['first_name']=='Test Firstname Updated', "Cannot update the address book location. <br><br>"); |
|
| 45 | 45 | |
| 46 | 46 | echo "The field <b>first_name</b> in the address book location <b>".$address_id."</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'GMC TopKick C5500 Medium', |
| 22 | 22 | 'vehicle_vin' => 'SAJXA01A06FN08012', |
| 23 | 23 | 'vehicle_license_plate' => 'CVH4561', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'Ford Transit Test 4', |
| 22 | 22 | 'vehicle_vin' => 'JS3TD62V1Y4107898', |
| 23 | 23 | 'vehicle_reg_country_id' => '223', |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | assert(!is_null($randomVehicleID), "Can't retrieve a random vehilce ID"); |
| 23 | 23 | |
| 24 | 24 | // Remove the vehicle |
| 25 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 25 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 26 | 26 | 'vehicle_id' => $randomVehicleID |
| 27 | 27 | )); |
| 28 | 28 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'ISUZU FTR', |
| 22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
| 23 | 23 | 'vehicle_license_plate' => 'IFT6253', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'Liebherr T 282B mining truck', |
| 22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
| 23 | 23 | 'vehicle_license_plate' => 'LMT8765', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'GMC TopKick C5500 Light', |
| 22 | 22 | 'vehicle_vin' => 'SAJXA01A06FN08012', |
| 23 | 23 | 'vehicle_license_plate' => 'CVH4561', |