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 ( ae3ad2...c1f900 )
by
unknown
05:02
created
src/Route4Me/Vehicle.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 	{
8 8
 		static public $apiUrl = '/api/vehicles/view_vehicles.php';
9 9
 		
10
-		public function __construct () {  }
10
+		public function __construct() {  }
11 11
 		
12 12
 		public static function fromArray(array $params) {
13
-			$vehicle= new Vehicle();
14
-	        foreach($params as $key => $value) {
13
+			$vehicle = new Vehicle();
14
+	        foreach ($params as $key => $value) {
15 15
 	            if (property_exists($vehicle, $key)) {
16 16
 	                $vehicle->{$key} = $value;
17 17
 	            }
Please login to merge, or discard this patch.
src/Route4Me/Territory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@  discard block
 block discarded – undo
8 8
 	{
9 9
 		static public $apiUrl = '/api.v4/territory.php';
10 10
 	
11
-		public $territory_id;  // Territory id
11
+		public $territory_id; // Territory id
12 12
 		public $territory_name; 
13 13
 		public $territory_color;
14 14
 		public $addresses;
15 15
 		public $member_id;
16 16
 		public $territory; // Territory parameters
17 17
 		
18
-		public function __construct () {
18
+		public function __construct() {
19 19
 			
20 20
 		}
21 21
 		
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	        }
34 34
 			
35 35
 			$territoryparameters = new Territory();
36
-	        foreach($params as $key => $value) {
36
+	        foreach ($params as $key => $value) {
37 37
 	            if (property_exists($territoryparameters, $key)) {
38 38
 	                $territoryparameters->{$key} = $value;
39 39
 	            }
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	            'url'    => self::$apiUrl,
49 49
 	            'method' => 'GET',
50 50
 	            'query'  => array(
51
-	                'territory_id' => isset($params['territory_id']) ? $params['territory_id']: null,
52
-	                'addresses' => isset($params['addresses']) ? $params['addresses']: null,
51
+	                'territory_id' => isset($params['territory_id']) ? $params['territory_id'] : null,
52
+	                'addresses' => isset($params['addresses']) ? $params['addresses'] : null,
53 53
 	            )
54 54
 	        ));
55 55
 	
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 	            'url'    => self::$apiUrl,
63 63
 	            'method' => 'GET',
64 64
 	            'query'  => array(
65
-	                'offset'  => isset($params->offset) ? $params->offset: null,
66
-	                'limit'   => isset($params->limit) ? $params->limit: null,
65
+	                'offset'  => isset($params->offset) ? $params->offset : null,
66
+	                'limit'   => isset($params->limit) ? $params->limit : null,
67 67
 	            )
68 68
 	        ));
69 69
 	
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	            'url'    => self::$apiUrl,
77 77
 	            'method' => 'ADD',
78 78
 	            'query'  => array(
79
-	            	'territory_name' => isset($params->territory_name) ? $params->territory_name: null,
79
+	            	'territory_name' => isset($params->territory_name) ? $params->territory_name : null,
80 80
 	                'territory_color' => isset($params->territory_color) ? $params->territory_color : null,
81 81
 	                'territory' => isset($params->territory) ? $params->territory : null,
82 82
 	            )
Please login to merge, or discard this patch.
src/Route4Me/ActivityParameters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 		public $activity_type;
20 20
 		public $activity_message;
21 21
 		
22
-		public function __construct () {
22
+		public function __construct() {
23 23
 			
24 24
 		}
25 25
 		
26 26
 		public static function fromArray(array $params) {
27 27
 			$activityparameters = new ActivityParameters();
28
-	        foreach($params as $key => $value) {
28
+	        foreach ($params as $key => $value) {
29 29
 	            if (property_exists($activityparameters, $key)) {
30 30
 	                $activityparameters->{$key} = $value;
31 31
 	            }
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 	            'method' => 'GET',
42 42
 	            'query'  => array(
43 43
 	                'route_id' => isset($params->route_id) ? $params->route_id : null,
44
-	                'team' => isset($params->team) ? $params->team: null,
45
-	                'limit' => isset($params->limit) ? $params->limit: null,
44
+	                'team' => isset($params->team) ? $params->team : null,
45
+	                'limit' => isset($params->limit) ? $params->limit : null,
46 46
 	                'offset' => isset($params->offset) ? $params->offset : null,
47 47
 	            )
48 48
 	        ));
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	            'method' => 'GET',
58 58
 	            'query'  => array(
59 59
 	                'route_id' => isset($params->route_id) ? $params->route_id : null,
60
-	                'limit' => isset($params->limit) ? $params->limit: null,
60
+	                'limit' => isset($params->limit) ? $params->limit : null,
61 61
 	                'offset' => isset($params->offset) ? $params->offset : null,
62 62
 	                'activity_type' => isset($params->activity_type) ? $params->activity_type : null,
63 63
 	            )
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	            'method' => 'POST',
74 74
 	            'body'  => array(
75 75
 	            	'activity_type' => isset($postParameters->activity_type) ? $postParameters->activity_type : null,
76
-	            	'activity_message' => isset($postParameters->activity_message) ? $postParameters->activity_message: null,
76
+	            	'activity_message' => isset($postParameters->activity_message) ? $postParameters->activity_message : null,
77 77
 	                'route_id' => isset($postParameters->route_id) ? $postParameters->route_id : null,
78 78
 	            )
79 79
 	        ));
Please login to merge, or discard this patch.
src/Route4Me/RouteParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public static function fromArray(array $params)
49 49
     {
50 50
         $routeParams = new RouteParameters();
51
-        foreach($params as $key => $value) {
51
+        foreach ($params as $key => $value) {
52 52
             if (property_exists($routeParams, $key)) {
53 53
                 $routeParams->{$key} = $value;
54 54
             }
Please login to merge, or discard this patch.
examples/Activities/GetActivities.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,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/AvoidanceZones/GetAvoidanceZone.php 1 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
 	
@@ -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 {
Please login to merge, or discard this patch.
examples/get_route_manifest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require __DIR__.'/../vendor/autoload.php';;
2
+require __DIR__.'/../vendor/autoload.php'; ;
3 3
 
4 4
 use Route4Me\Route4Me;
5 5
 use Route4Me\Route;
Please login to merge, or discard this patch.
examples/multiple_depot_multiple_driver.php 1 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/Tracking/TrackDeviceLastLocationHistory.php 1 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.