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
Push — master ( a5fe8a...69f35b )
by
unknown
02:34
created
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.
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.
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/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.
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.
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/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.
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.
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/Geocoding/reverse_geocode.php 2 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.
Spacing   +2 added lines, -2 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,7 +11,7 @@  discard block
 block discarded – undo
11 11
 	// Set the api key in the Route4me class
12 12
 	Route4Me::setApiKey('11111111111111111111111111111111');
13 13
 	
14
-	$geocodingParameters=array(
14
+	$geocodingParameters = array(
15 15
 		'format' => 'xml',
16 16
 		'addresses' => 'Los20%Angeles20%International20%Airport,20%CA'
17 17
 	);
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimizations.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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 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
 	//require __DIR__.'/../vendor/autoload.php';;
Please login to merge, or discard this patch.
examples/single_driver_round_trip.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,8 @@
 block discarded – undo
10 10
 use Route4Me\Enum\DistanceUnit;
11 11
 use Route4Me\Enum\DeviceType;
12 12
 use Route4Me\Enum\TravelMode;
13
-use Route4Me\Enum\Metric;
14 13
 use Route4Me\RouteParameters;
15 14
 use Route4Me\Address;
16
-use Route4Me\Route;
17 15
 
18 16
 Route4Me::setApiKey('11111111111111111111111111111111');
19 17
 
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
 
24 24
 $addresses = array();
25 25
 foreach($json as $address) {
26
-    $addresses[] = Address::fromArray($address);
26
+	$addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
29 29
 $parameters = RouteParameters::fromArray(array(
30
-    "algorithm_type"          => AlgorithmType::TSP,
31
-    "distance_unit"           => DistanceUnit::MILES,
32
-    "device_type"             => DeviceType::WEB,
33
-    "optimize"                => OptimizationType::DISTANCE,
34
-    "travel_mode"             => TravelMode::DRIVING,
35
-    "route_max_duration"      => 86400,
36
-    "vehicle_capacity"        => 1,
37
-    "vehicle_max_distance_mi" => 10000,
38
-    "rt"                      => true
30
+	"algorithm_type"          => AlgorithmType::TSP,
31
+	"distance_unit"           => DistanceUnit::MILES,
32
+	"device_type"             => DeviceType::WEB,
33
+	"optimize"                => OptimizationType::DISTANCE,
34
+	"travel_mode"             => TravelMode::DRIVING,
35
+	"route_max_duration"      => 86400,
36
+	"vehicle_capacity"        => 1,
37
+	"vehicle_max_distance_mi" => 10000,
38
+	"rt"                      => true
39 39
 ));
40 40
 
41 41
 $optimizationParams = new OptimizationProblemParams;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 $json = array_slice($json, 0, 10);
23 23
 
24 24
 $addresses = array();
25
-foreach($json as $address) {
25
+foreach ($json as $address) {
26 26
     $addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
Please login to merge, or discard this patch.
examples/SingleDepotMultipleDriverNoTimeWindow.php 4 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,14 +7,12 @@
 block discarded – undo
7 7
 use Route4Me\Enum\OptimizationType;
8 8
 use Route4Me\OptimizationProblem;
9 9
 use Route4Me\OptimizationProblemParams;
10
-use Route4Me\Enum\AlgorithmType;
11 10
 use Route4Me\Enum\DistanceUnit;
12 11
 use Route4Me\Enum\DeviceType;
13 12
 use Route4Me\Enum\TravelMode;
14 13
 use Route4Me\Enum\Metric;
15 14
 use Route4Me\RouteParameters;
16 15
 use Route4Me\Address;
17
-use Route4Me\Route;
18 16
 
19 17
 Route4Me::setApiKey('11111111111111111111111111111111');
20 18
 
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -23,24 +23,24 @@
 block discarded – undo
23 23
 
24 24
 $addresses = array();
25 25
 foreach($json as $address) {
26
-    $addresses[] = Address::fromArray($address);
26
+	$addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
29 29
 $parameters = RouteParameters::fromArray(array(
30
-    "algorithm_type"          => Algorithmtype::CVRP_TW_SD,
31
-    "route_name"			  => "Single Depot, Multiple Driver, No Time Window",
32
-    "route_date"			  => time() + 24*60*60,
33
-    "route_time"			  => 60 * 60 * 7,
34
-    "rt"					  => TRUE,
35
-    "distance_unit"           => DistanceUnit::MILES,
36
-    "device_type"             => DeviceType::WEB,
37
-    "optimize"                => OptimizationType::TIME,
38
-    "metric"                  => Metric::GEODESIC,
39
-    "route_max_duration"      => 86400,
40
-    "travel_mode"             => TravelMode::DRIVING,
41
-    "vehicle_capacity"        => 20,
42
-    "vehicle_max_distance_mi" => 99999,
43
-    "parts"                   => 4
30
+	"algorithm_type"          => Algorithmtype::CVRP_TW_SD,
31
+	"route_name"			  => "Single Depot, Multiple Driver, No Time Window",
32
+	"route_date"			  => time() + 24*60*60,
33
+	"route_time"			  => 60 * 60 * 7,
34
+	"rt"					  => TRUE,
35
+	"distance_unit"           => DistanceUnit::MILES,
36
+	"device_type"             => DeviceType::WEB,
37
+	"optimize"                => OptimizationType::TIME,
38
+	"metric"                  => Metric::GEODESIC,
39
+	"route_max_duration"      => 86400,
40
+	"travel_mode"             => TravelMode::DRIVING,
41
+	"vehicle_capacity"        => 20,
42
+	"vehicle_max_distance_mi" => 99999,
43
+	"parts"                   => 4
44 44
 ));
45 45
 
46 46
 $optimizationParams = new OptimizationProblemParams;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3
-require __DIR__.'/../vendor/autoload.php';;
3
+require __DIR__.'/../vendor/autoload.php'; ;
4 4
 //See video tutorial here: http://support.route4me.com/route-planning-help.php?id=manual0:tutorial2:chapter2:subchapter2
5 5
 
6 6
 use Route4Me\Route4Me;
@@ -22,14 +22,14 @@  discard block
 block discarded – undo
22 22
 $json = json_decode(file_get_contents('./addresses.json'), true);
23 23
 
24 24
 $addresses = array();
25
-foreach($json as $address) {
25
+foreach ($json as $address) {
26 26
     $addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
29 29
 $parameters = RouteParameters::fromArray(array(
30 30
     "algorithm_type"          => Algorithmtype::CVRP_TW_SD,
31 31
     "route_name"			  => "Multiple Depot, Multiple Driver with 24 Stops, Time Window",
32
-    "route_date"			  => time() + 24*60*60,
32
+    "route_date"			  => time() + 24 * 60 * 60,
33 33
     "route_time"			  => 60 * 60 * 7,
34 34
     "distance_unit"           => DistanceUnit::MILES,
35 35
     "device_type"             => DeviceType::WEB,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
 	if (is_string($value))
48 48
 	{
49 49
 		echo $key." --> ".$value."<br>";
50
-	}
51
-	else 
50
+	} else 
52 51
 	{
53 52
 		echo "************ $key ************* <br>";
54 53
 		Route4Me::simplePrint((array)$value);
Please login to merge, or discard this patch.
examples/SingleDriverMultipleTimeWindows.php 4 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -7,14 +7,11 @@
 block discarded – undo
7 7
 use Route4Me\Enum\OptimizationType;
8 8
 use Route4Me\OptimizationProblem;
9 9
 use Route4Me\OptimizationProblemParams;
10
-use Route4Me\Enum\AlgorithmType;
11 10
 use Route4Me\Enum\DistanceUnit;
12 11
 use Route4Me\Enum\DeviceType;
13
-use Route4Me\Enum\TravelMode;
14 12
 use Route4Me\Enum\Metric;
15 13
 use Route4Me\RouteParameters;
16 14
 use Route4Me\Address;
17
-use Route4Me\Route;
18 15
 
19 16
 Route4Me::setApiKey('11111111111111111111111111111111');
20 17
 
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,18 +23,18 @@
 block discarded – undo
23 23
 
24 24
 $addresses = array();
25 25
 foreach($json as $address) {
26
-    $addresses[] = Address::fromArray($address);
26
+	$addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
29 29
 $parameters = RouteParameters::fromArray(array(
30
-    "algorithm_type"          => Algorithmtype::TSP,
31
-    "route_name"			  => "Single Driver Multiple TimeWindows 12 Stops",
32
-    "route_date"			  => time() + 24*60*60,
33
-    "route_time"			  => 5 * 3600 + 30 * 60,
34
-    "distance_unit"           => DistanceUnit::MILES,
35
-    "device_type"             => DeviceType::WEB,
36
-    "optimize"                => OptimizationType::DISTANCE,
37
-    "metric"                  => Metric::GEODESIC
30
+	"algorithm_type"          => Algorithmtype::TSP,
31
+	"route_name"			  => "Single Driver Multiple TimeWindows 12 Stops",
32
+	"route_date"			  => time() + 24*60*60,
33
+	"route_time"			  => 5 * 3600 + 30 * 60,
34
+	"distance_unit"           => DistanceUnit::MILES,
35
+	"device_type"             => DeviceType::WEB,
36
+	"optimize"                => OptimizationType::DISTANCE,
37
+	"metric"                  => Metric::GEODESIC
38 38
 ));
39 39
 
40 40
 $optimizationParams = new OptimizationProblemParams;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@
 block discarded – undo
22 22
 $json = json_decode(file_get_contents('./addresses.json'), true);
23 23
 
24 24
 $addresses = array();
25
-foreach($json as $address) {
25
+foreach ($json as $address) {
26 26
     $addresses[] = Address::fromArray($address);
27 27
 }
28 28
 
29 29
 $parameters = RouteParameters::fromArray(array(
30 30
     "algorithm_type"          => Algorithmtype::TSP,
31 31
     "route_name"			  => "Single Driver Multiple TimeWindows 12 Stops",
32
-    "route_date"			  => time() + 24*60*60,
32
+    "route_date"			  => time() + 24 * 60 * 60,
33 33
     "route_time"			  => 5 * 3600 + 30 * 60,
34 34
     "distance_unit"           => DistanceUnit::MILES,
35 35
     "device_type"             => DeviceType::WEB,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
 	if (is_string($value))
48 48
 	{
49 49
 		echo $key." --> ".$value."<br>";
50
-	}
51
-	else 
50
+	} else 
52 51
 	{
53 52
 		echo "************ $key ************* <br>";
54 53
 		Route4Me::simplePrint((array)$value);
Please login to merge, or discard this patch.
examples/Territories/GetTerritoryWithAddresses.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\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.
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.
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.