@@ -18,14 +18,14 @@ |
||
| 18 | 18 | |
| 19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
| 20 | 20 | $territoryParams['data'] = array( |
| 21 | - "37.569752822786455,-77.47833251953125", |
|
| 22 | - "5000" |
|
| 21 | + "37.569752822786455,-77.47833251953125", |
|
| 22 | + "5000" |
|
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $AvoisanceZoneParameters = AvoidanceZone::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | - "territory_color" => "ff7700", |
|
| 28 | - "territory" => $territoryParams |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | + "territory_color" => "ff7700", |
|
| 28 | + "territory" => $territoryParams |
|
| 29 | 29 | )); |
| 30 | 30 | |
| 31 | 31 | $avoidancezone = new AvoidanceZone(); |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Enum\TerritoryTypes; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $AvoisanceZoneParameters = AvoidanceZone::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
| 27 | 27 | "territory_color" => "ff7700", |
| 28 | 28 | "territory" => $territoryParams |
| 29 | 29 | )); |
@@ -18,14 +18,14 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
| 20 | 20 | $territoryParams['data'] = array( |
| 21 | - "37.569752822786455,-77.47833251953125", |
|
| 22 | - "5000" |
|
| 21 | + "37.569752822786455,-77.47833251953125", |
|
| 22 | + "5000" |
|
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | - "territory_color" => "ff7700", |
|
| 28 | - "territory" => $territoryParams |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | + "territory_color" => "ff7700", |
|
| 28 | + "territory" => $territoryParams |
|
| 29 | 29 | )); |
| 30 | 30 | |
| 31 | 31 | $avoidancezone = new AvoidanceZone(); |
@@ -41,15 +41,15 @@ discard block |
||
| 41 | 41 | $territory = new Territory(); |
| 42 | 42 | $territory->type = TerritoryTypes::RECT; |
| 43 | 43 | $territory->data = array( |
| 44 | - "37.869752822786455,-77.49833251953125", |
|
| 45 | - "5000" |
|
| 44 | + "37.869752822786455,-77.49833251953125", |
|
| 45 | + "5000" |
|
| 46 | 46 | ); |
| 47 | 47 | |
| 48 | 48 | $AvoidanceZoneParameters = array( |
| 49 | - "territory_id" => $territory_id, |
|
| 50 | - "territory_name" => "Test Territory Updated", |
|
| 51 | - "territory_color" => "ff5500", |
|
| 52 | - "territory" => $territory |
|
| 49 | + "territory_id" => $territory_id, |
|
| 50 | + "territory_name" => "Test Territory Updated", |
|
| 51 | + "territory_color" => "ff5500", |
|
| 52 | + "territory" => $territory |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | $result1 = $avoidancezone->updateAvoidanceZone($AvoidanceZoneParameters); |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Enum\TerritoryTypes; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
| 27 | 27 | "territory_color" => "ff7700", |
| 28 | 28 | "territory" => $territoryParams |
| 29 | 29 | )); |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -15,14 +15,14 @@ |
||
| 15 | 15 | $vehicle = new Vehicle(); |
| 16 | 16 | |
| 17 | 17 | $vehicleParameters = array( |
| 18 | - "with_pagination" => true, |
|
| 19 | - "page" => 2, |
|
| 20 | - "perPage" => 10 |
|
| 21 | - ); |
|
| 18 | + "with_pagination" => true, |
|
| 19 | + "page" => 2, |
|
| 20 | + "perPage" => 10 |
|
| 21 | + ); |
|
| 22 | 22 | |
| 23 | 23 | $response = $vehicle->getVehicles($vehicleParameters); |
| 24 | 24 | |
| 25 | 25 | foreach ($response['data'] as $key => $vehicle) { |
| 26 | - Route4Me::simplePrint($vehicle); |
|
| 27 | - echo "<br>"; |
|
| 26 | + Route4Me::simplePrint($vehicle); |
|
| 27 | + echo "<br>"; |
|
| 28 | 28 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Route; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | // Delete member from the user's account |
| 26 | 26 | $params = Member::fromArray(array ( |
| 27 | - "member_id" => $randomMemberID |
|
| 27 | + "member_id" => $randomMemberID |
|
| 28 | 28 | )); |
| 29 | 29 | |
| 30 | 30 | $response = $member->deleteMember($params); |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Member; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | assert(!is_null($randomMemberID), "There is no member of the type SUB_ACCOUNT_DRIVER in the user's account"); |
| 24 | 24 | |
| 25 | 25 | // Delete member from the user's account |
| 26 | -$params = Member::fromArray(array ( |
|
| 26 | +$params = Member::fromArray(array( |
|
| 27 | 27 | "member_id" => $randomMemberID |
| 28 | 28 | )); |
| 29 | 29 | |
@@ -17,10 +17,10 @@ |
||
| 17 | 17 | // Example refers to the process of searching for text and specifing returned fields. |
| 18 | 18 | |
| 19 | 19 | $params = array( |
| 20 | - 'query' => 'David', |
|
| 21 | - 'fields' => 'first_name,address_email', |
|
| 22 | - 'offset' => 0, |
|
| 23 | - 'limit' => 5 |
|
| 20 | + 'query' => 'David', |
|
| 21 | + 'fields' => 'first_name,address_email', |
|
| 22 | + 'offset' => 0, |
|
| 23 | + 'limit' => 5 |
|
| 24 | 24 | ); |
| 25 | 25 | |
| 26 | 26 | $abcResult = $ablocation->searchRoutedLocation($params); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | |
@@ -14,10 +14,10 @@ discard block |
||
| 14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 15 | 15 | |
| 16 | 16 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
| 17 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
| 18 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
| 19 | - "cached_lat" => 38.024654, |
|
| 20 | - "cached_lng" => -77.338814 |
|
| 17 | + "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
| 18 | + "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
| 19 | + "cached_lat" => 38.024654, |
|
| 20 | + "cached_lng" => -77.338814 |
|
| 21 | 21 | )); |
| 22 | 22 | |
| 23 | 23 | $abContacts = new AddressBookLocation(); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $address_id = -1; |
| 28 | 28 | |
| 29 | 29 | if (isset($createdContact['address_id'])) { |
| 30 | - $address_id = $createdContact["address_id"]; |
|
| 30 | + $address_id = $createdContact["address_id"]; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | assert($address_id != -1, "Creating of Address Book Location was failed. Try again!.. <br>"); |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Route; |
@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
| 15 | 15 | |
| 16 | 16 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
| 17 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
| 18 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
| 17 | + "first_name" => "Test FirstName ".strval(rand(10000, 99999)), |
|
| 18 | + "address_1" => "Test Address1 ".strval(rand(10000, 99999)), |
|
| 19 | 19 | "cached_lat" => 38.024654, |
| 20 | 20 | "cached_lng" => -77.338814 |
| 21 | 21 | )); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $address_id = $createdContact["address_id"]; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -assert($address_id != -1, "Creating of Address Book Location was failed. Try again!.. <br>"); |
|
| 33 | +assert($address_id!=-1, "Creating of Address Book Location was failed. Try again!.. <br>"); |
|
| 34 | 34 | |
| 35 | 35 | echo "Address Book Location with address_id = ".strval($address_id)." was successfully added<br>"; |
| 36 | 36 | |
@@ -18,14 +18,14 @@ |
||
| 18 | 18 | |
| 19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
| 20 | 20 | $territoryParams['data'] = array( |
| 21 | - "37.569752822786455,-77.47833251953125", |
|
| 22 | - "5000" |
|
| 21 | + "37.569752822786455,-77.47833251953125", |
|
| 22 | + "5000" |
|
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | - "territory_color" => "ff7700", |
|
| 28 | - "territory" => $territoryParams |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 27 | + "territory_color" => "ff7700", |
|
| 28 | + "territory" => $territoryParams |
|
| 29 | 29 | )); |
| 30 | 30 | |
| 31 | 31 | $territory = new Territory(); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
| 26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
| 26 | + "territory_name" => "Test Territory ".strval(rand(10000, 99999)), |
|
| 27 | 27 | "territory_color" => "ff7700", |
| 28 | 28 | "territory" => $territoryParams |
| 29 | 29 | )); |