@@ -16,14 +16,14 @@ |
||
| 16 | 16 | |
| 17 | 17 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
| 18 | 18 | $territoryParams['data'] = array( |
| 19 | - "37.569752822786455,-77.47833251953125", |
|
| 20 | - "5000" |
|
| 19 | + "37.569752822786455,-77.47833251953125", |
|
| 20 | + "5000" |
|
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 24 | - "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000,99999)), |
|
| 25 | - "territory_color" => "ff7700", |
|
| 26 | - "territory" => $territoryParams |
|
| 24 | + "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000,99999)), |
|
| 25 | + "territory_color" => "ff7700", |
|
| 26 | + "territory" => $territoryParams |
|
| 27 | 27 | )); |
| 28 | 28 | |
| 29 | 29 | $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; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 24 | - "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000,99999)), |
|
| 24 | + "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000, 99999)), |
|
| 25 | 25 | "territory_color" => "ff7700", |
| 26 | 26 | "territory" => $territoryParams |
| 27 | 27 | )); |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | |
| 17 | 17 | $territoryParams['type'] = TerritoryTypes::RECT; |
| 18 | 18 | $territoryParams['data'] = array( |
| 19 | - "43.51668853502909,-109.3798828125", |
|
| 20 | - "46.98025235521883,-101.865234375" |
|
| 19 | + "43.51668853502909,-109.3798828125", |
|
| 20 | + "46.98025235521883,-101.865234375" |
|
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 24 | - "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000,99999)), |
|
| 25 | - "territory_color" => "ff7700", |
|
| 26 | - "territory" => $territoryParams |
|
| 24 | + "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000,99999)), |
|
| 25 | + "territory_color" => "ff7700", |
|
| 26 | + "territory" => $territoryParams |
|
| 27 | 27 | )); |
| 28 | 28 | |
| 29 | 29 | $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; |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 24 | - "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000,99999)), |
|
| 24 | + "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000, 99999)), |
|
| 25 | 25 | "territory_color" => "ff7700", |
| 26 | 26 | "territory" => $territoryParams |
| 27 | 27 | )); |
@@ -16,21 +16,21 @@ |
||
| 16 | 16 | |
| 17 | 17 | $territoryParams['type'] = TerritoryTypes::POLY; |
| 18 | 18 | $territoryParams['data'] = array( |
| 19 | - "37.769752822786455,-77.67833251953125", |
|
| 20 | - "37.75886716305343,-77.68974800109863", |
|
| 21 | - "37.74763966054455,-77.6917221069336", |
|
| 22 | - "37.74655084306813,-77.68863220214844", |
|
| 23 | - "37.7502255383101,-77.68125076293945", |
|
| 24 | - "37.74797991274437,-77.67498512268066", |
|
| 25 | - "37.73327960206065,-77.6411678314209", |
|
| 26 | - "37.74430510679532,-77.63172645568848", |
|
| 27 | - "37.76641925847049,-77.66846199035645" |
|
| 19 | + "37.769752822786455,-77.67833251953125", |
|
| 20 | + "37.75886716305343,-77.68974800109863", |
|
| 21 | + "37.74763966054455,-77.6917221069336", |
|
| 22 | + "37.74655084306813,-77.68863220214844", |
|
| 23 | + "37.7502255383101,-77.68125076293945", |
|
| 24 | + "37.74797991274437,-77.67498512268066", |
|
| 25 | + "37.73327960206065,-77.6411678314209", |
|
| 26 | + "37.74430510679532,-77.63172645568848", |
|
| 27 | + "37.76641925847049,-77.66846199035645" |
|
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 31 | - "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000,99999)), |
|
| 32 | - "territory_color" => "ff7700", |
|
| 33 | - "territory" => $territoryParams |
|
| 31 | + "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000,99999)), |
|
| 32 | + "territory_color" => "ff7700", |
|
| 33 | + "territory" => $territoryParams |
|
| 34 | 34 | )); |
| 35 | 35 | |
| 36 | 36 | $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; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | ); |
| 29 | 29 | |
| 30 | 30 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
| 31 | - "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000,99999)), |
|
| 31 | + "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000, 99999)), |
|
| 32 | 32 | "territory_color" => "ff7700", |
| 33 | 33 | "territory" => $territoryParams |
| 34 | 34 | )); |
@@ -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 @@ |
||
| 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; |