GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#2)
by
unknown
07:12
created
examples/Territories/CreateRectangularTerritory.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -13,19 +13,19 @@  discard block
 block discarded – undo
13 13
 	// Example refers to the process of creating Territory with rectangular shape
14 14
 	
15 15
 	$territory = new Territory();
16
-	$territory->type =  TerritoryTypes::RECT;
17
-	$territory->data = array (
16
+	$territory->type = TerritoryTypes::RECT;
17
+	$territory->data = array(
18 18
 			"43.51668853502909,-109.3798828125",
19 19
 			"46.98025235521883,-101.865234375"
20 20
 	);
21 21
 	
22
-	$TerritoryParameters=Territory::fromArray(array(
23
-		"territory_name"	=> "Test Rectangular Territory ".strval(rand(10000,99999)),
22
+	$TerritoryParameters = Territory::fromArray(array(
23
+		"territory_name"	=> "Test Rectangular Territory ".strval(rand(10000, 99999)),
24 24
 		"territory_color"	=> "ff7700",
25 25
 		"territory"	=> $territory
26 26
 	));
27 27
 	
28
-	$territory=new Territory();
28
+	$territory = new Territory();
29 29
 	
30 30
 	$result = $territory->addTerritory($TerritoryParameters);
31 31
 	
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Enum\TerritoryTypes;
Please login to merge, or discard this patch.
examples/Territories/UpdateTerritory.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -14,23 +14,23 @@  discard block
 block discarded – undo
14 14
 	// Add Avoidance Zone and get territory_id
15 15
 	//---------------------------------------------------------
16 16
 	$territory = new Territory();
17
-	$territory->type =  TerritoryTypes::CIRCLE;
18
-	$territory->data = array (
17
+	$territory->type = TerritoryTypes::CIRCLE;
18
+	$territory->data = array(
19 19
 		"37.569752822786455,-77.47833251953125",
20 20
 		"5000"
21 21
 	);
22 22
 	
23
-	$TerritoryParameters=Territory::fromArray(array(
24
-		"territory_name"	=> "Test Territory ".strval(rand(10000,99999)),
23
+	$TerritoryParameters = Territory::fromArray(array(
24
+		"territory_name"	=> "Test Territory ".strval(rand(10000, 99999)),
25 25
 		"territory_color"	=> "ff7700",
26 26
 		"territory"	=> $territory
27 27
 	));
28 28
 	
29
-	$territory=new Territory();
29
+	$territory = new Territory();
30 30
 	
31 31
 	$result = (array)$territory->addTerritory($TerritoryParameters);
32 32
 	
33
-	$territory_id="";
33
+	$territory_id = "";
34 34
 	if (isset($result)) {
35 35
 		$territory_id = $result["territory_id"];
36 36
 	} else {
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 	//-----------------------------------------------------------
44 44
 	
45 45
 	$territory = new Territory();
46
-	$territory->type =  TerritoryTypes::RECT;
47
-	$territory->data = array (
46
+	$territory->type = TerritoryTypes::RECT;
47
+	$territory->data = array(
48 48
 		"37.869752822786455,-77.49833251953125",
49 49
 		"5000"
50 50
 	);
51 51
 	
52
-	$TerritoryParameters=Territory::fromArray(array(
52
+	$TerritoryParameters = Territory::fromArray(array(
53 53
 		"territory_id" => $territory_id,
54 54
 		"territory_name"	=> "Test Territory Updated",
55 55
 		"territory_color"	=> "ff5500",
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Enum\TerritoryTypes;
Please login to merge, or discard this patch.
examples/Territories/CreatePolygonianTerritory.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 	// Example refers to the process of creating Territory with polygonian shape
14 14
 	
15 15
 	$territory = new Territory();
16
-	$territory->type =  TerritoryTypes::POLY;
17
-	$territory->data = array (
16
+	$territory->type = TerritoryTypes::POLY;
17
+	$territory->data = array(
18 18
 			"37.769752822786455,-77.67833251953125",
19 19
 			"37.75886716305343,-77.68974800109863",
20 20
 			"37.74763966054455,-77.6917221069336",
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 			"37.76641925847049,-77.66846199035645"
27 27
 	);
28 28
 	
29
-	$TerritoryParameters=Territory::fromArray(array(
30
-		"territory_name"	=> "Test Polygonian Territory ".strval(rand(10000,99999)),
29
+	$TerritoryParameters = Territory::fromArray(array(
30
+		"territory_name"	=> "Test Polygonian Territory ".strval(rand(10000, 99999)),
31 31
 		"territory_color"	=> "ff7700",
32 32
 		"territory"	=> $territory
33 33
 	));
34 34
 	
35
-	$territory=new Territory();
35
+	$territory = new Territory();
36 36
 	
37 37
 	$result = $territory->addTerritory($TerritoryParameters);
38 38
 	
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Enum\TerritoryTypes;
Please login to merge, or discard this patch.
examples/Territories/AddTerritory.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -12,19 +12,19 @@  discard block
 block discarded – undo
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14 14
 	$territory = new Territory();
15
-	$territory->type =  TerritoryTypes::CIRCLE;
16
-	$territory->data = array (
15
+	$territory->type = TerritoryTypes::CIRCLE;
16
+	$territory->data = array(
17 17
 		"37.569752822786455,-77.47833251953125",
18 18
 		"5000"
19 19
 	);
20 20
 	
21
-	$TerritoryParameters= Territory::fromArray(array(
22
-		"territory_name"	=> "Test Territory ".strval(rand(10000,99999)),
21
+	$TerritoryParameters = Territory::fromArray(array(
22
+		"territory_name"	=> "Test Territory ".strval(rand(10000, 99999)),
23 23
 		"territory_color"	=> "ff7700",
24 24
 		"territory"	=> $territory
25 25
 	));
26 26
 	
27
-	$territory=new Territory();
27
+	$territory = new Territory();
28 28
 	
29 29
 	$result = $territory->addTerritory($TerritoryParameters);
30 30
 	
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Enum\TerritoryTypes;
Please login to merge, or discard this patch.
examples/Territories/GetTerritoryWithAddresses.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 	// Set the api key in the Route4Me class
11 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 	
13
-	$territory=new Territory();
13
+	$territory = new Territory();
14 14
 	
15
-	$territory_id="596A2A44FE9FB19EEB9C3C072BF2D0BE";
15
+	$territory_id = "596A2A44FE9FB19EEB9C3C072BF2D0BE";
16 16
 	
17 17
 	$params = array(
18 18
 		"territory_id" => $territory_id,
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9
-	use Route4Me\Enum\TerritoryTypes;
10 9
 	// Set the api key in the Route4Me class
11 10
 	Route4Me::setApiKey('11111111111111111111111111111111');
12 11
 	
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Enum\TerritoryTypes;
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_detected_as_visited.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 	
15 15
 	// Get random route from test routes
16 16
 	//--------------------------------------------------------
17
-	$route=new Route();
17
+	$route = new Route();
18 18
 	
19
-	$route_id=$route->getRandomRouteId(0, 10);
19
+	$route_id = $route->getRandomRouteId(0, 10);
20 20
 	
21 21
 	if (is_null($route_id)) {
22 22
 		echo "can't retrieve random route_id!.. Try again.";
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	
27 27
 	// Get random address's id from selected route above
28 28
 	//--------------------------------------------------------
29
-	$addressRand=(array)$route->GetRandomAddressFromRoute($route_id);
29
+	$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
30 30
 	
31 31
 	if (isset($addressRand['is_depot']))
32 32
 	{
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 	//--------------------------------------------------------
47 47
 	
48
-	$addressParameters=(array)Address::fromArray(array(
48
+	$addressParameters = (array)Address::fromArray(array(
49 49
 		"route_id"	=> $route_id,
50 50
 		"route_destination_id"	=> $address_id,
51 51
 	));
52 52
 	
53
-	$body= array(
53
+	$body = array(
54 54
 		"is_visited"	=> TRUE,
55 55
 	);
56 56
 	
57
-	$address=new Address();
57
+	$address = new Address();
58 58
 	
59
-	$result=$address->markAddress($addressParameters, $body);
59
+	$result = $address->markAddress($addressParameters, $body);
60 60
 	
61 61
 	Route4Me::simplePrint($result);
62 62
 ?>
63 63
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Route;
Please login to merge, or discard this patch.
examples/Addresses/mark_address_as_detected_as_departed.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 	
15 15
 	// Get random route from test routes
16 16
 	//--------------------------------------------------------
17
-	$route=new Route();
17
+	$route = new Route();
18 18
 	
19
-	$route_id=$route->getRandomRouteId(0, 10);
19
+	$route_id = $route->getRandomRouteId(0, 10);
20 20
 	
21 21
 	if (is_null($route_id)) {
22 22
 		echo "can't retrieve random route_id!.. Try again.";
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	
27 27
 	// Get random address's id from selected route above
28 28
 	//--------------------------------------------------------
29
-	$addressRand=(array)$route->GetRandomAddressFromRoute($route_id);
29
+	$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
30 30
 	
31 31
 	if (isset($addressRand['is_depot']))
32 32
 	{
@@ -45,18 +45,18 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 	//--------------------------------------------------------
47 47
 	
48
-	$addressParameters=(array)Address::fromArray(array(
48
+	$addressParameters = (array)Address::fromArray(array(
49 49
 		"route_id"	=> $route_id,
50 50
 		"route_destination_id"	=> $address_id,
51 51
 	));
52 52
 	
53
-	$body= array(
53
+	$body = array(
54 54
 		"is_departed"	=> TRUE,
55 55
 	);
56 56
 	
57
-	$address=new Address();
57
+	$address = new Address();
58 58
 	
59
-	$result=$address->markAddress($addressParameters, $body);
59
+	$result = $address->markAddress($addressParameters, $body);
60 60
 	
61 61
 	Route4Me::simplePrint($result);
62 62
 ?>
63 63
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Route;
Please login to merge, or discard this patch.
examples/Addresses/AddRouteDestinations.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 	
14 14
 	// Get random route from test routes
15 15
 	//--------------------------------------------------------
16
-	$route=new Route();
16
+	$route = new Route();
17 17
 	
18
-	$route_id=$route->getRandomRouteId(0, 10);
18
+	$route_id = $route->getRandomRouteId(0, 10);
19 19
 	
20 20
 	if (is_null($route_id)) {
21 21
 		echo "can't retrieve random route_id!.. Try again.";
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
 	}
24 24
 	//--------------------------------------------------------
25 25
 	
26
-	$addresses=array();
26
+	$addresses = array();
27 27
 	
28
-	$address1=(array)Address::fromArray(array(
28
+	$address1 = (array)Address::fromArray(array(
29 29
 		'address' 	=>	'146 Bill Johnson Rd NE Milledgeville GA 31061',
30 30
 		'lat'		=>	33.143526,
31 31
 		'lng'		=>	-83.240354,
32 32
 		'time'		=>	0
33 33
 	));
34 34
 	
35
-	$address2=(array)Address::fromArray(array(
35
+	$address2 = (array)Address::fromArray(array(
36 36
 		'address' 	=>	'222 Blake Cir Milledgeville GA 31061',
37 37
 		'lat'		=>	33.177852,
38 38
 		'lng'		=>	-83.263535,
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
40 40
 	));
41 41
 	
42 42
 
43
-	$addresses[]=$address1; 
44
-	$addresses[]=$address2;
43
+	$addresses[] = $address1; 
44
+	$addresses[] = $address2;
45 45
 	
46
-	$routeParameters=(array)Route::fromArray(array(
46
+	$routeParameters = (array)Route::fromArray(array(
47 47
 		"route_id"	=> $route_id,
48 48
 		"addresses"		=> $addresses,
49 49
 	));
50 50
 	
51
-	$route1=new Route();
51
+	$route1 = new Route();
52 52
 	
53
-	$result=$route1->addAddresses($routeParameters);
53
+	$result = $route1->addAddresses($routeParameters);
54 54
 	
55 55
 	Route4Me::simplePrint((array)$result);
56 56
 ?>
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Route;
Please login to merge, or discard this patch.
examples/Addresses/MoveDestinationToRoute.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 	namespace Route4Me;
3 3
 	
4
-	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
4
+	$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6 6
     require $vdir.'/../vendor/autoload.php';
7 7
 	
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
 	// Get random source route from test routes
15 15
 	//--------------------------------------------------------
16
-	$route=new Route();
16
+	$route = new Route();
17 17
 	
18
-	$route_id0=$route->getRandomRouteId(0, 10);
18
+	$route_id0 = $route->getRandomRouteId(0, 10);
19 19
 	
20 20
 	if (is_null($route_id0)) {
21 21
 		echo "can't retrieve random route_id!.. Try again.";
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 	
26 26
 	// Get random source destination from selected source route above
27 27
 	//--------------------------------------------------------
28
-	$addressRand=(array)$route->GetRandomAddressFromRoute($route_id0);
29
-	$route_destination_id=$addressRand['route_destination_id'];
28
+	$addressRand = (array)$route->GetRandomAddressFromRoute($route_id0);
29
+	$route_destination_id = $addressRand['route_destination_id'];
30 30
 	
31 31
 	if (is_null($route_destination_id)) {
32 32
 		echo "can't retrieve random address!.. Try again.";
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	
38 38
 	// Get random destination route from test routes
39 39
 	//--------------------------------------------------------
40
-	$to_route_id=$route->getRandomRouteId(11, 20);
40
+	$to_route_id = $route->getRandomRouteId(11, 20);
41 41
 	
42 42
 	if (is_null($to_route_id)) {
43 43
 		echo "can't retrieve random route_id!.. Try again.";
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	
49 49
 	// Get random destination destination from selected source route above
50 50
 	//--------------------------------------------------------
51
-	$addressRand2=(array)$route->GetRandomAddressFromRoute($to_route_id);
52
-	$after_destination_id=$addressRand2['route_destination_id'];
51
+	$addressRand2 = (array)$route->GetRandomAddressFromRoute($to_route_id);
52
+	$after_destination_id = $addressRand2['route_destination_id'];
53 53
 	
54 54
 	if (is_null($after_destination_id)) {
55 55
 		echo "can't retrieve random address!.. Try again.";
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	echo "after_destination_id = $after_destination_id <br>";
59 59
 	//--------------------------------------------------------	
60 60
 	
61
-	$routeparams=(array)Address::fromArray(array(
61
+	$routeparams = (array)Address::fromArray(array(
62 62
 		'address'	=> $addressRand['address'],
63 63
 		'lat'	=> $addressRand['lat'],
64 64
 		'lng'	=> $addressRand['lng'],
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		'after_destination_id'		=>	strval($after_destination_id)
68 68
 	));
69 69
 	
70
-	$address=new Address();
70
+	$address = new Address();
71 71
 	$result = $address->MoveDestinationToRoute($routeparams);
72 72
 	//$result=$route->MoveDestinationToRoute($routeparams);
73 73
 	
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 	
4 4
 	$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/';
5 5
 
6
-    require $vdir.'/../vendor/autoload.php';
6
+	require $vdir.'/../vendor/autoload.php';
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Route;
Please login to merge, or discard this patch.