@@ -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 |
@@ -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,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,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,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 | )); |
@@ -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; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | ); |
22 | 22 | |
23 | 23 | $TerritoryParameters = Territory::fromArray(array( |
24 | - "territory_name" => "Test Rectangular Territory ".strval(rand(10000,99999)), |
|
24 | + "territory_name" => "Test Rectangular Territory ".strval(rand(10000, 99999)), |
|
25 | 25 | "territory_color" => "ff7700", |
26 | 26 | "territory" => $territoryParams |
27 | 27 | )); |
@@ -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 | )); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | echo "------------------------------------------------------------------------<br><br>"; |
38 | 38 | |
39 | 39 | // Update territory |
40 | -$territoryParameters = array ( |
|
40 | +$territoryParameters = array( |
|
41 | 41 | "type" => TerritoryTypes::RECT, |
42 | 42 | "data" => array( |
43 | 43 | "29.6600127358956,-95.6593322753906", |
@@ -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; |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | "37.76641925847049,-77.66846199035645" |
28 | 28 | ); |
29 | 29 | |
30 | -$TerritoryParameters=Territory::fromArray(array( |
|
31 | - "territory_name" => "Test Polygonian Territory ".strval(rand(10000,99999)), |
|
30 | +$TerritoryParameters = Territory::fromArray(array( |
|
31 | + "territory_name" => "Test Polygonian Territory ".strval(rand(10000, 99999)), |
|
32 | 32 | "territory_color" => "ff7700", |
33 | 33 | "territory" => $territoryParams |
34 | 34 | )); |
@@ -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 | )); |