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.
Passed
Push — master ( 22c278...8077f9 )
by Oleg
02:37
created
examples/Routes/RecomputeRouteDirections.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 $route->parameters = new \stdClass();
31 31
 
32 32
 $route->parameters = array( 
33
-    "recompute_directions" => 1
33
+	"recompute_directions" => 1
34 34
 );
35 35
 
36 36
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
examples/Routes/ResequenceAllAddresses.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 
22 22
 // Resequence all addresses
23 23
 $params = array(
24
-    "route_id"              => $route_id,
25
-    "disable_optimization"  => 0,
26
-    "optimize"              => "Distance"
24
+	"route_id"              => $route_id,
25
+	"disable_optimization"  => 0,
26
+	"optimize"              => "Distance"
27 27
 );
28 28
 
29 29
 $resequence = $route->resequenceAllAddresses($params);
Please login to merge, or discard this patch.
examples/Routes/GetRoutes.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 Route4Me::setApiKey('11111111111111111111111111111111');
12 12
 
13 13
 $RouteParameters = array(
14
-    "limit"   => 30,
15
-    "offset"  => 0
14
+	"limit"   => 30,
15
+	"offset"  => 0
16 16
 );
17 17
 
18 18
 $route = new Route();
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
 
22 22
 foreach ($routeResults as $routeResult)
23 23
 {
24
-    $results = (array)$routeResult;
24
+	$results = (array)$routeResult;
25 25
 
26
-    Route4Me::simplePrint($results);
26
+	Route4Me::simplePrint($results);
27 27
     
28
-    echo "<br>";
28
+	echo "<br>";
29 29
 }
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
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
Please login to merge, or discard this patch.
examples/Routes/ShareRoute.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
 
22 22
 // Share a route with an email
23 23
 $params = array(
24
-    "route_id"         => $route_id,
25
-    "response_format"  => "json",
26
-    "recipient_email"  => "[email protected]"
24
+	"route_id"         => $route_id,
25
+	"response_format"  => "json",
26
+	"recipient_email"  => "[email protected]"
27 27
 );
28 28
 
29 29
 $result = $route->shareRoute($params);
Please login to merge, or discard this patch.
examples/Routes/UpdateRouteParameters.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
 $route->parameters = new \stdClass();
31 31
 
32 32
 $route->parameters = array(
33
-    "member_id"           => $randomRoute->member_id,
34
-    "optimize"            => "Distance",
35
-    "route_max_duration"  => "82400",
36
-    "route_name"          => "updated " . date('m-d-Y')
33
+	"member_id"           => $randomRoute->member_id,
34
+	"optimize"            => "Distance",
35
+	"route_max_duration"  => "82400",
36
+	"route_name"          => "updated " . date('m-d-Y')
37 37
 );
38 38
 
39 39
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     "member_id"           => $randomRoute->member_id,
34 34
     "optimize"            => "Distance",
35 35
     "route_max_duration"  => "82400",
36
-    "route_name"          => "updated " . date('m-d-Y')
36
+    "route_name"          => "updated ".date('m-d-Y')
37 37
 );
38 38
 
39 39
 $route->httpheaders = 'Content-type: application/json';
Please login to merge, or discard this patch.
examples/Territories/GetTerritoryWithAddresses.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 
18 18
 // Select a terriotry with the addresses from the list
19 19
 $params = array(
20
-    "offset"    => 0,
21
-    "limit"     => 50,
22
-    "addresses" => 1
20
+	"offset"    => 0,
21
+	"limit"     => 50,
22
+	"addresses" => 1
23 23
 );
24 24
 
25 25
 $results = $territory->getTerritories($params);
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
 $territory1 = null;
29 29
 
30 30
 foreach ($results as $terr) {
31
-    if (isset($terr['addresses'])) {
32
-        if (sizeof($terr['addresses'])>0) {
33
-            $territory1 = $terr;
34
-            break;
35
-        }
36
-    }	
31
+	if (isset($terr['addresses'])) {
32
+		if (sizeof($terr['addresses'])>0) {
33
+			$territory1 = $terr;
34
+			break;
35
+		}
36
+	}	
37 37
 }
38 38
 
39 39
 assert(isset($territory1['territory_id']), "Can't retrieve a random territory ID");
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 
44 44
 // Get a territory with the addresses
45 45
 $params = array(
46
-    "territory_id" => $territory_id,
47
-    "addresses"    => 1
46
+	"territory_id" => $territory_id,
47
+	"addresses"    => 1
48 48
 );
49 49
 
50 50
 $result1 = $territory->getTerritory($params);
Please login to merge, or discard this patch.
examples/Territories/GetTerritories.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 $territory = new Territory();
14 14
 
15 15
 $queryparameters = array (
16
-    "offset" => 0,
17
-    "limit"  => 20
16
+	"offset" => 0,
17
+	"limit"  => 20
18 18
 );
19 19
 
20 20
 $response = $territory->getTerritories($queryparameters);
21 21
 
22 22
 foreach ($response as $terr1) {
23 23
 	Route4Me::simplePrint($terr1, true);
24
-    echo "<br>";
24
+	echo "<br>";
25 25
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 $territory = new Territory();
14 14
 
15
-$queryparameters = array (
15
+$queryparameters = array(
16 16
     "offset" => 0,
17 17
     "limit"  => 20
18 18
 );
Please login to merge, or discard this patch.
src/Route4Me/Enum/Metric.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 
4 4
 class Metric
5 5
 {
6
-    const EUCLIDEAN = 1; //measures point to point distance as a straight line
7
-    const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
8
-    const GEODESIC  = 3; //measures point to point distance approximating curvature of the earth
9
-    const MATRIX    = 4; //measures point to point distance by traversing the actual road network
10
-    const EXACT_2D  = 5; //measures point to point distance using 2d rectilinear distance
6
+	const EUCLIDEAN = 1; //measures point to point distance as a straight line
7
+	const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
8
+	const GEODESIC  = 3; //measures point to point distance approximating curvature of the earth
9
+	const MATRIX    = 4; //measures point to point distance by traversing the actual road network
10
+	const EXACT_2D  = 5; //measures point to point distance using 2d rectilinear distance
11 11
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/ActivityTypes.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -3,34 +3,34 @@
 block discarded – undo
3 3
 
4 4
 class ActivityTypes
5 5
 {
6
-    const AREA_REMOVED              = 'area-removed';
7
-    const AREA_ADDED                = 'area-added';
8
-    const AREA_UPDATED              = 'area-updated';
9
-    const DELETE_DESTINATION        = 'delete-destination';
10
-    const INSERT_DESTINATION        = 'insert-destination';
11
-    const DESTINATION_OUT_SEQUENCE  = 'destination-out-sequence';
12
-    const DRIVER_ARRIVED_EARLY      = 'driver-arrived-early';
13
-    const DRIVER_ARRIVED_LATE       = 'driver-arrived-late';
14
-    const DRIVER_ARRIVED_ON_TIME    = 'driver-arrived-on-time';
15
-    const GEOFENCE_LEFT             = 'geofence-left';
16
-    const GEOFENCE_ENTERED          = 'geofence-entered';
17
-    const MARK_DESTINATION_DEPARTED = 'mark-destination-departed';
18
-    const MARK_DESTINATION_VISITED  = 'mark-destination-visited';
19
-    const MEMBER_CREATED            = 'member-created';
20
-    const MEMBER_DELETED            = 'member-deleted';
21
-    const MEMBER_MODIFIED           = 'member-modified';
22
-    const MOVE_DESTINATION          = 'move-destination';
23
-    const NOTE_INSERT               = 'note-insert';
24
-    const ROUTE_DELETE              = 'route-delete';
25
-    const ROUTE_OPTIMIZED           = 'route-optimized';
26
-    const ROUTE_OWNER_CHANGED       = 'route-owner-changed';
27
-    const ROUTE_DUPLICATE           = 'route-duplicate';
28
-    const UPDATE_DESTINATIONS       = 'update-destinations';
29
-    const USER_MESSAGE              = 'user_message';
6
+	const AREA_REMOVED              = 'area-removed';
7
+	const AREA_ADDED                = 'area-added';
8
+	const AREA_UPDATED              = 'area-updated';
9
+	const DELETE_DESTINATION        = 'delete-destination';
10
+	const INSERT_DESTINATION        = 'insert-destination';
11
+	const DESTINATION_OUT_SEQUENCE  = 'destination-out-sequence';
12
+	const DRIVER_ARRIVED_EARLY      = 'driver-arrived-early';
13
+	const DRIVER_ARRIVED_LATE       = 'driver-arrived-late';
14
+	const DRIVER_ARRIVED_ON_TIME    = 'driver-arrived-on-time';
15
+	const GEOFENCE_LEFT             = 'geofence-left';
16
+	const GEOFENCE_ENTERED          = 'geofence-entered';
17
+	const MARK_DESTINATION_DEPARTED = 'mark-destination-departed';
18
+	const MARK_DESTINATION_VISITED  = 'mark-destination-visited';
19
+	const MEMBER_CREATED            = 'member-created';
20
+	const MEMBER_DELETED            = 'member-deleted';
21
+	const MEMBER_MODIFIED           = 'member-modified';
22
+	const MOVE_DESTINATION          = 'move-destination';
23
+	const NOTE_INSERT               = 'note-insert';
24
+	const ROUTE_DELETE              = 'route-delete';
25
+	const ROUTE_OPTIMIZED           = 'route-optimized';
26
+	const ROUTE_OWNER_CHANGED       = 'route-owner-changed';
27
+	const ROUTE_DUPLICATE           = 'route-duplicate';
28
+	const UPDATE_DESTINATIONS       = 'update-destinations';
29
+	const USER_MESSAGE              = 'user_message';
30 30
 
31
-    static function getConstants() {
32
-        $atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes');
33
-        return $atc->getConstants();
34
-    }
31
+	static function getConstants() {
32
+		$atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes');
33
+		return $atc->getConstants();
34
+	}
35 35
 }
36 36
 
Please login to merge, or discard this patch.