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/AvoidanceZones/UpdateAvoidanceZone.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,23 +13,23 @@  discard block
 block discarded – undo
13 13
 	// Add Avoidance Zone and get territory_id
14 14
 	//---------------------------------------------------------
15 15
 	$territory = new Territory();
16
-	$territory->type =  TerritoryTypes::CIRCLE;
17
-	$territory->data = array (
16
+	$territory->type = TerritoryTypes::CIRCLE;
17
+	$territory->data = array(
18 18
 		"37.569752822786455,-77.47833251953125",
19 19
 		"5000"
20 20
 	);
21 21
 	
22
-	$AvoisanceZoneParameters=AvoidanceZone::fromArray(array(
23
-		"territory_name"	=> "Test Territory ".strval(rand(10000,99999)),
22
+	$AvoisanceZoneParameters = AvoidanceZone::fromArray(array(
23
+		"territory_name"	=> "Test Territory ".strval(rand(10000, 99999)),
24 24
 		"territory_color"	=> "ff7700",
25 25
 		"territory"	=> $territory
26 26
 	));
27 27
 	
28
-	$avoidancezone=new AvoidanceZone();
28
+	$avoidancezone = new AvoidanceZone();
29 29
 	
30 30
 	$result = (array)$avoidancezone->addAvoidanceZone($AvoisanceZoneParameters);
31 31
 	
32
-	$territory_id="";
32
+	$territory_id = "";
33 33
 	if (isset($result)) {
34 34
 		$territory_id = $result["territory_id"];
35 35
 	} else {
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 	//-----------------------------------------------------------
43 43
 	
44 44
 	$territory = new Territory();
45
-	$territory->type =  TerritoryTypes::RECT;
46
-	$territory->data = array (
45
+	$territory->type = TerritoryTypes::RECT;
46
+	$territory->data = array(
47 47
 		"37.869752822786455,-77.49833251953125",
48 48
 		"5000"
49 49
 	);
50 50
 	
51
-	$AvoisanceZoneParameters=AvoidanceZone::fromArray(array(
51
+	$AvoisanceZoneParameters = AvoidanceZone::fromArray(array(
52 52
 		"territory_id" => $territory_id,
53 53
 		"territory_name"	=> "Test Territory Updated",
54 54
 		"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/MemberConfiguration/delete_config_key.php 2 patches
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\Member;
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
 	
@@ -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
-	$params = Member::fromArray(array (
16
+	$params = Member::fromArray(array(
17 17
 		"config_key"=> "My height"
18 18
 	));
19 19
 	
Please login to merge, or discard this patch.
examples/MemberConfiguration/update_config_key.php 2 patches
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
 	
@@ -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
-	$params = Member::fromArray(array (
16
+	$params = Member::fromArray(array(
17 17
 		"config_key"=> "destination_icon_uri",
18 18
 		"config_value"=> "555"
19 19
 	));
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\Member;
Please login to merge, or discard this patch.
examples/MemberConfiguration/create_new_config_key.php 2 patches
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
 	
@@ -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
-	$params = Member::fromArray(array (
16
+	$params = Member::fromArray(array(
17 17
 		"config_key"=> "destination_icon_uri",
18 18
 		"config_value"=> "value"
19 19
 	));
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\Member;
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_account_config_key_data.php 3 patches
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
 	
@@ -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
-	$params = Member::fromArray(array (
16
+	$params = Member::fromArray(array(
17 17
 	));
18 18
 	
19 19
 	$member = new Member();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 		if (is_array($value))
26 26
 		{
27 27
 			Route4Me::simplePrint($value);
28
-		}
29
-		else 
28
+		} else 
30 29
 		{
31 30
 			echo "$key => $value <br>";
32 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\Member;
Please login to merge, or discard this patch.
examples/MemberConfiguration/get_specific_account_config_key_data.php 3 patches
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
 	
@@ -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
-	$params = Member::fromArray(array (
16
+	$params = Member::fromArray(array(
17 17
 		"config_key"=> "destination_icon_uri"
18 18
 	));
19 19
 	
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\Member;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
 		if (is_array($value))
26 26
 		{
27 27
 			Route4Me::simplePrint($value);
28
-		}
29
-		else 
28
+		} else 
30 29
 		{
31 30
 			echo "$key => $value <br>";
32 31
 		}
Please login to merge, or discard this patch.
examples/Optimizations/reoptimization.php 1 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,18 +13,18 @@  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(10, 20);
18
+	$route_id = $route->getRandomRouteId(10, 20);
19 19
 	
20 20
 	if (is_null($route_id)) {
21 21
 		echo "can't retrieve random route_id!.. Try again.";
22 22
 		return;
23 23
 	}
24 24
 	
25
-	$route=$route->getRoutes($route_id,null);
25
+	$route = $route->getRoutes($route_id, null);
26 26
 	
27
-	$optimizationProblemId=$route->getOptimizationId();
27
+	$optimizationProblemId = $route->getOptimizationId();
28 28
 	
29 29
 	$problemParams = array(
30 30
 		'optimization_problem_id'  =>  $optimizationProblemId
Please login to merge, or discard this patch.
examples/Optimizations/RemoveOptimization.php 2 patches
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\OptimizationProblem;
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
 	
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 	//--------------------------------------------------------
17 17
 	$optimization = new OptimizationProblem();
18 18
 	
19
-	$params = array (
19
+	$params = array(
20 20
 		"optimization_problem_ids"  => array(
21 21
 			"0" => "E222162732CBC3BF9A79F90D83E12DFC"
22 22
 		),
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimization.php 2 patches
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,18 +13,18 @@  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(10, 20);
18
+	$route_id = $route->getRandomRouteId(10, 20);
19 19
 	
20 20
 	if (is_null($route_id)) {
21 21
 		echo "can't retrieve random route_id!.. Try again.";
22 22
 		return;
23 23
 	}
24 24
 	
25
-	$route=$route->getRoutes($route_id,null);
25
+	$route = $route->getRoutes($route_id, null);
26 26
 	
27
-	$optimizationProblemId=$route->getOptimizationId();
27
+	$optimizationProblemId = $route->getOptimizationId();
28 28
 	
29 29
 	echo "route_id = $route_id<br>";
30 30
 	echo "optimization_problem_id = $optimizationProblemId <br><br>";
Please login to merge, or discard this patch.