@@ -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 | )); |
@@ -134,7 +134,7 @@ |
||
134 | 134 | |
135 | 135 | if ($file!=null) { |
136 | 136 | curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); |
137 | - $fp=fopen($file, 'r'); |
|
137 | + $fp = fopen($file, 'r'); |
|
138 | 138 | curl_setopt($ch, CURLOPT_INFILE, $fp); |
139 | 139 | curl_setopt($ch, CURLOPT_INFILESIZE, filesize($file)); |
140 | 140 | } |
@@ -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 | )); |
@@ -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; |
@@ -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,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; |