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
Branch master (ae3ad2)
by Dan
04:30
created
examples/Activities/GetActivities.php 3 patches
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\Route;
10 9
 	
11 10
 	// Set the api key in the Route4Me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
Spacing   +5 added lines, -5 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
 	
@@ -11,15 +11,15 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4Me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$activityParameters=ActivityParameters::fromArray(array(
14
+	$activityParameters = ActivityParameters::fromArray(array(
15 15
 		"limit"		=> 10,
16 16
 		"offset"	=> 0
17 17
 	));
18 18
 	
19
-	$activities=new ActivityParameters();
20
-	$actresults=$activities->get($activityParameters);
19
+	$activities = new ActivityParameters();
20
+	$actresults = $activities->get($activityParameters);
21 21
 	
22
-	$results=$activities->getValue($actresults,"results");
22
+	$results = $activities->getValue($actresults, "results");
23 23
 	
24 24
 	Route4Me::simplePrint($results);
25 25
 	 
Please login to merge, or discard this patch.
examples/Activities/GetRouteTeamActivities.php 3 patches
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\Route;
10 9
 	
11 10
 	// Set the api key in the Route4Me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
Spacing   +5 added lines, -5 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,16 +13,16 @@  discard block
 block discarded – undo
13 13
 	
14 14
 	$routeId = '06B655F27E0D6A74BD37F6F9758E4D2E';
15 15
 	
16
-	$activityParameters=ActivityParameters::fromArray(array(
16
+	$activityParameters = ActivityParameters::fromArray(array(
17 17
 		"route_id"	=> $routeId,
18 18
 		"team"		=> "true"
19 19
 	));
20 20
 	
21 21
 	
22
-	$activities=new ActivityParameters();
23
-	$actresults=$activities->get($activityParameters);
22
+	$activities = new ActivityParameters();
23
+	$actresults = $activities->get($activityParameters);
24 24
 	
25
-	$results=$activities->getValue($actresults,"results");
25
+	$results = $activities->getValue($actresults, "results");
26 26
 	
27 27
 	Route4Me::simplePrint($results);
28 28
 	 
Please login to merge, or discard this patch.
examples/Activities/SearchActivities.php 3 patches
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\Route;
10 9
 	
11 10
 	// Example refers to activities by activity_type parameter.
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\Route;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	// Set the api key in the Route4Me class
14 14
 	Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 	
16
-	$activityParameters=ActivityParameters::fromArray(array(
16
+	$activityParameters = ActivityParameters::fromArray(array(
17 17
 		"activity_type"	=> "area-removed",
18 18
 		"limit"		=> 5,
19 19
 		"offset"	=> 0
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
 	// "mark-destination-visited", "member-created", "member-deleted", "member-modified", "note-insert", "route-delete", "route-optimized", 
25 25
 	// "route-owner-changed"
26 26
 	
27
-	$activities=new ActivityParameters();
27
+	$activities = new ActivityParameters();
28 28
 	
29
-	$results=$activities->searcActivities($activityParameters);
29
+	$results = $activities->searcActivities($activityParameters);
30 30
 	
31 31
 	foreach ($results as $key => $activity) {
32 32
 		Route4Me::simplePrint($activity);
Please login to merge, or discard this patch.
examples/Activities/SendUserMessage.php 3 patches
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\AvtivityParameters;
10 9
 	
11 10
 	// Set the api key in the Route4me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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\AvtivityParameters;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
 	
@@ -11,15 +11,15 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$postParameters=ActivityParameters::fromArray(array(
14
+	$postParameters = ActivityParameters::fromArray(array(
15 15
 		"activity_type"	=> "user_message",
16 16
 		"activity_message"	=> "Hello - php!",
17 17
 		"route_id"	=> "2EA70721624592FC41522A708603876D"
18 18
 	));
19 19
 	
20
-	$activities=new ActivityParameters();
20
+	$activities = new ActivityParameters();
21 21
 	
22
-	$results=$activities->sendUserMessage($postParameters);
22
+	$results = $activities->sendUserMessage($postParameters);
23 23
 	
24 24
 	foreach ($results as $key => $result) {
25 25
 		echo "$key ----> <br>";
Please login to merge, or discard this patch.
examples/AddressBook/AddAddressBookLocation.php 3 patches
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\Route;
10 9
 	
11 10
 	// Set the api key in the Route4me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
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
 	
@@ -11,16 +11,16 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$AdressBookLocationParameters=AddressBookLocation::fromArray(array(
15
-		"first_name"	=> "Test FirstName ".strval(rand(10000,99999)),
16
-		"address_1"		=> "Test Address1 ".strval(rand(10000,99999)),
14
+	$AdressBookLocationParameters = AddressBookLocation::fromArray(array(
15
+		"first_name"	=> "Test FirstName ".strval(rand(10000, 99999)),
16
+		"address_1"		=> "Test Address1 ".strval(rand(10000, 99999)),
17 17
 		"cached_lat"	=> 38.024654,
18 18
 		"cached_lng"	=> -77.338814
19 19
 	));
20 20
 	
21
-	$abContacts=new AddressBookLocation();
21
+	$abContacts = new AddressBookLocation();
22 22
 	
23
-	$abcResults=$abContacts->addAdressBookLocation($AdressBookLocationParameters);
23
+	$abcResults = $abContacts->addAdressBookLocation($AdressBookLocationParameters);
24 24
 	
25 25
 	echo "address_id = ".strval($abcResults["address_id"])."<br>";
26 26
 	
Please login to merge, or discard this patch.
examples/AddressBook/GetAddressBookLocations.php 3 patches
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\Route;
10 9
 	
11 10
 	// Set the api key in the Route4Me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
Spacing   +5 added lines, -5 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
 	
@@ -11,16 +11,16 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4Me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$AdressBookLocationParameters=AddressBookLocation::fromArray(array(
14
+	$AdressBookLocationParameters = AddressBookLocation::fromArray(array(
15 15
 		"limit"		=> 30,
16 16
 		"offset"	=> 0
17 17
 	));
18 18
 	
19
-	$abContacts=new AddressBookLocation();
19
+	$abContacts = new AddressBookLocation();
20 20
 	
21
-	$abcResults=$abContacts->getAddressBookLocations($AdressBookLocationParameters);
21
+	$abcResults = $abContacts->getAddressBookLocations($AdressBookLocationParameters);
22 22
 	
23
-	$results=$abContacts->getValue($abcResults,"results");
23
+	$results = $abContacts->getValue($abcResults, "results");
24 24
 	
25 25
 	Route4Me::simplePrint($results);
26 26
 
Please login to merge, or discard this patch.
examples/AddressBook/RemoveAddressBookLocations.php 3 patches
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\Route;
10 9
 	
11 10
 	// Set the api key in the Route4Me class
12 11
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
Spacing   +12 added lines, -12 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
 	
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4Me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$AdressBookLocationParameters=AddressBookLocation::fromArray(array(
15
-		"first_name"	=> "Test FirstName ".strval(rand(10000,99999)),
16
-		"address_1"		=> "Test Address1 ".strval(rand(10000,99999)),
14
+	$AdressBookLocationParameters = AddressBookLocation::fromArray(array(
15
+		"first_name"	=> "Test FirstName ".strval(rand(10000, 99999)),
16
+		"address_1"		=> "Test Address1 ".strval(rand(10000, 99999)),
17 17
 		"cached_lat"	=> 38.024654,
18 18
 		"cached_lng"	=> -77.338814
19 19
 	));
20 20
 	
21
-	$abContacts=new AddressBookLocation();
21
+	$abContacts = new AddressBookLocation();
22 22
 	
23
-	$abcResults=$abContacts->addAdressBookLocation($AdressBookLocationParameters);
23
+	$abcResults = $abContacts->addAdressBookLocation($AdressBookLocationParameters);
24 24
 	
25
-	$address_id=-1;
25
+	$address_id = -1;
26 26
 	if (is_array($abcResults)) {
27 27
 		if (isset($abcResults["address_id"])) {
28
-			$address_id=$abcResults["address_id"];
28
+			$address_id = $abcResults["address_id"];
29 29
 		}
30 30
 	}
31 31
 	
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 	}
36 36
 	echo "Address Book Location with address_id = ".strval($address_id)." was successfully added<br>";
37 37
 	
38
-	$addressBookLocations=array(6305950);
38
+	$addressBookLocations = array(6305950);
39 39
 	
40
-	$abLocations=new AddressBookLocation();
40
+	$abLocations = new AddressBookLocation();
41 41
 	
42
-	$deleteResult=$abLocations->deleteAdressBookLocation($addressBookLocations);
42
+	$deleteResult = $abLocations->deleteAdressBookLocation($addressBookLocations);
43 43
 	
44
-	if (is_array($deleteResult)){
44
+	if (is_array($deleteResult)) {
45 45
 		if (sizeof($deleteResult)>0) {
46 46
 			echo "Address Book Location with address_id = ".strval($address_id)." was successfully deleted<br>";
47 47
 		} else {
Please login to merge, or discard this patch.
examples/Addresses/RemoveDestinationFromOptimization.php 3 patches
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\Address;
10 9
 	use Route4Me\OptimizationProblem;
11 10
 	
12 11
 	// Set the api key in the Route4Me class
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\Address;
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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
 	
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	//--------------------------------------------------------
17 17
 	$optimization = new OptimizationProblem();
18 18
 	
19
-	$optimization_problem=$optimization->getRandomOptimizationId(0, 10);
19
+	$optimization_problem = $optimization->getRandomOptimizationId(0, 10);
20 20
 	
21 21
 	if (is_null($optimization_problem)) {
22 22
 		echo "can't retrieve random optimization_problem_id!.. Try again.";
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	//--------------------------------------------------------
26 26
 	// Get random destination from selected optimization above
27 27
 	//--------------------------------------------------------
28
-	$addressRand= (array)$optimization->getRandomAddressFromOptimization($optimization_problem['optimization_problem_id']);
28
+	$addressRand = (array)$optimization->getRandomAddressFromOptimization($optimization_problem['optimization_problem_id']);
29 29
 	
30 30
 	if (is_null($addressRand)) {
31 31
 		echo "can't retrieve random address!.. Try again.";
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 		}
40 40
 	}
41 41
 	
42
-	$route_destination_id=$addressRand['route_destination_id'];
42
+	$route_destination_id = $addressRand['route_destination_id'];
43 43
 	
44 44
 	if (is_null($route_destination_id)) {
45 45
 		echo "can't retrieve random address!.. Try again.";
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	
49 49
 	echo "route_destination_id = $route_destination_id <br>";
50 50
 	//--------------------------------------------------------
51
-	$params = array (
51
+	$params = array(
52 52
 		"optimization_problem_id"  => $optimization_problem['optimization_problem_id'],
53 53
 		"route_destination_id"     => $route_destination_id
54 54
 	);
Please login to merge, or discard this patch.
examples/Addresses/RemoveRouteDestination.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 	
8 8
 	use Route4Me\Route4Me;
9 9
 	use Route4Me\Route;
10
-	use Route4Me\OptimizationProblem;
11 10
 	
12 11
 	// Set the api key in the Route4Me class
13 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
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.
Spacing   +7 added lines, -7 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,8 +26,8 @@  discard block
 block discarded – undo
26 26
 	
27 27
 	// Get random destination from selected route above
28 28
 	//--------------------------------------------------------
29
-	$addressRand=(array)$route->GetRandomAddressFromRoute($route_id);
30
-	$route_destination_id=$addressRand['route_destination_id'];
29
+	$addressRand = (array)$route->GetRandomAddressFromRoute($route_id);
30
+	$route_destination_id = $addressRand['route_destination_id'];
31 31
 	
32 32
 	if (is_null($route_destination_id)) {
33 33
 		echo "can't retrieve random address!.. Try again.";
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 	echo "route_destination_id = $route_destination_id <br>";
38 38
 	//--------------------------------------------------------
39 39
 	
40
-	$address=new Address();
40
+	$address = new Address();
41 41
 	
42 42
 	$address->route_id = $route_id;
43 43
 	$address->route_destination_id = $route_destination_id;
44
-	$result=$address->delete();
44
+	$result = $address->delete();
45 45
 	
46 46
 	var_dump($result);
47 47
 ?>
48 48
\ No newline at end of file
Please login to merge, or discard this patch.