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 ( 55318a...b54c2e )
by Oleg
02:27
created
examples/Tracking/SetGPSPosition.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@
 block discarded – undo
26 26
 // Set GPS postion to the selected route
27 27
 // Set right member_id corresponding to the API key
28 28
 $params = TrackSetParams::fromArray(array(
29
-    'format'           => Format::CSV,
30
-    'route_id'         => $routeId,
31
-    'member_id'        => 1,
32
-    'course'           => 1,
33
-    'speed'            => 120,
34
-    'lat'              => 41.8927521,
35
-    'lng'              => -109.0803888,
36
-    'device_type'      => 'android_phone',
37
-    'device_guid'      => 'qweqweqwe',
38
-    'device_timestamp' => date('Y-m-d H:i:s', strtotime('-1 day'))
29
+	'format'           => Format::CSV,
30
+	'route_id'         => $routeId,
31
+	'member_id'        => 1,
32
+	'course'           => 1,
33
+	'speed'            => 120,
34
+	'lat'              => 41.8927521,
35
+	'lng'              => -109.0803888,
36
+	'device_type'      => 'android_phone',
37
+	'device_guid'      => 'qweqweqwe',
38
+	'device_timestamp' => date('Y-m-d H:i:s', strtotime('-1 day'))
39 39
 ));
40 40
 
41 41
 $status = Track::set($params);
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\Enum\DeviceType;
Please login to merge, or discard this patch.
examples/Tracking/TrackDeviceLastLocationHistory.php 3 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@  discard block
 block discarded – undo
27 27
 // Set GPS postion to the selected route
28 28
 // Set right member_id corresponding to the API key
29 29
 $params = TrackSetParams::fromArray(array(
30
-    'format'           => Format::SERIALIZED,
31
-    'route_id'         => $routeId,
32
-    'member_id'        => 105323,
33
-    'course'           => 3,
34
-    'speed'            => 100,
35
-    'lat'              => 41.8927521,
36
-    'lng'              => -109.0803888,
37
-    'device_type'      => DeviceType::IPHONE,
38
-    'device_guid'      => 'qweqweqwe',
39
-    'device_timestamp' => date('Y-m-d H:i:s')
30
+	'format'           => Format::SERIALIZED,
31
+	'route_id'         => $routeId,
32
+	'member_id'        => 105323,
33
+	'course'           => 3,
34
+	'speed'            => 100,
35
+	'lat'              => 41.8927521,
36
+	'lng'              => -109.0803888,
37
+	'device_type'      => DeviceType::IPHONE,
38
+	'device_guid'      => 'qweqweqwe',
39
+	'device_timestamp' => date('Y-m-d H:i:s')
40 40
 ));
41 41
 
42 42
 $status = Track::set($params);
@@ -46,23 +46,23 @@  discard block
 block discarded – undo
46 46
 assert($status['status'], "Can't send GPS position to the selected route");
47 47
 
48 48
 if (!$status) {
49
-    echo "Setting of GPS position failed";
50
-    return;
49
+	echo "Setting of GPS position failed";
50
+	return;
51 51
 }
52 52
 
53 53
 $params = array(
54
-    'route_id'  =>  $routeId,
55
-    'device_tracking_history'  =>  '1'
54
+	'route_id'  =>  $routeId,
55
+	'device_tracking_history'  =>  '1'
56 56
 );
57 57
 
58 58
 $result = $route->GetLastLocation($params);
59 59
 
60 60
 if (isset($result->tracking_history))
61 61
 foreach ($result->tracking_history as $history) {
62
-    echo "Speed --> ".$history['s']."<br>";
63
-    echo "course --> ".$history['d']."<br>";
64
-    echo "Timestamp --> ".$history['ts_friendly']."<br>";
65
-    echo "Latitude --> ".$history['lt']."<br>";
66
-    echo "Longitude --> ".$history['lg']."<br>";
67
-    echo "========================================<br><br>";
62
+	echo "Speed --> ".$history['s']."<br>";
63
+	echo "course --> ".$history['d']."<br>";
64
+	echo "Timestamp --> ".$history['ts_friendly']."<br>";
65
+	echo "Latitude --> ".$history['lt']."<br>";
66
+	echo "Longitude --> ".$history['lg']."<br>";
67
+	echo "========================================<br><br>";
68 68
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,10 @@
 block discarded – undo
57 57
 
58 58
 $result = $route->GetLastLocation($params);
59 59
 
60
-if (isset($result->tracking_history))
61
-foreach ($result->tracking_history as $history) {
60
+if (isset($result->tracking_history)) {
61
+	foreach ($result->tracking_history as $history) {
62 62
     echo "Speed --> ".$history['s']."<br>";
63
+}
63 64
     echo "course --> ".$history['d']."<br>";
64 65
     echo "Timestamp --> ".$history['ts_friendly']."<br>";
65 66
     echo "Latitude --> ".$history['lt']."<br>";
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\Enum\DeviceType;
Please login to merge, or discard this patch.
examples/Tracking/AssetTracking.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 
31 31
 foreach ($addresses as $addr1) {
32 32
 	if (!is_null($addr1->tracking_number)) {
33
-	    $trackingNumber = $addr1->tracking_number;
34
-	    break;
33
+		$trackingNumber = $addr1->tracking_number;
34
+		break;
35 35
 	}
36 36
 }
37 37
 
38 38
 assert(!is_null($trackingNumber), "Can't select a tracking number");
39 39
 
40 40
 $params = array(
41
-    'tracking'  => $trackingNumber
41
+	'tracking'  => $trackingNumber
42 42
 );
43 43
 
44 44
 $route = new Route();
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 
48 48
 foreach ($result as $key => $value)
49 49
 {
50
-    if (is_array($value)) {
51
-        Route4Me::simplePrint($value, true);
52
-    } else {
53
-        echo "$key => $value <br>";
54
-    }
50
+	if (is_array($value)) {
51
+		Route4Me::simplePrint($value, true);
52
+	} else {
53
+		echo "$key => $value <br>";
54
+	}
55 55
 }
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\Enum\DeviceType;
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimizations.php 2 patches
Indentation   +3 added lines, -3 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'  =>  5,
15
-    'offset' => 0
14
+	'limit'  =>  5,
15
+	'offset' => 0
16 16
 );
17 17
 
18 18
 $optimizationProblem = new OptimizationProblem();
@@ -20,5 +20,5 @@  discard block
 block discarded – undo
20 20
 $optimizations = $optimizationProblem->get($routeParameters);
21 21
 
22 22
 foreach ($optimizations as $optimization) {
23
-    echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>";
23
+	echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>";
24 24
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4me\Route;
@@ -20,5 +20,5 @@  discard block
 block discarded – undo
20 20
 $optimizations = $optimizationProblem->get($routeParameters);
21 21
 
22 22
 foreach ($optimizations as $optimization) {
23
-    echo "Optimization problem ID -> " . $optimization->optimization_problem_id . "<br>";
23
+    echo "Optimization problem ID -> ".$optimization->optimization_problem_id."<br>";
24 24
 }
Please login to merge, or discard this patch.
examples/Optimizations/RemoveOptimization.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
 
25 25
 // Remove an optimization
26 26
 $params = array (
27
-    "optimization_problem_ids"  => array(
28
-        "0" => $optimizationProblemId
29
-    ),
30
-    "redirect"  => 0
27
+	"optimization_problem_ids"  => array(
28
+		"0" => $optimizationProblemId
29
+	),
30
+	"redirect"  => 0
31 31
 );
32 32
 
33 33
 $result = $optimization->removeOptimization($params);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\OptimizationProblem;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 assert(!is_null($optimizationProblemId), "Can't retrieve a random optimization problem ID");
24 24
 
25 25
 // Remove an optimization
26
-$params = array (
26
+$params = array(
27 27
     "optimization_problem_ids"  => array(
28 28
         "0" => $optimizationProblemId
29 29
     ),
Please login to merge, or discard this patch.
examples/Optimizations/reoptimization.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
 // Reoptimize an optimization
23 23
 $problemParams = array(
24
-    'optimization_problem_id'  =>  $optimizationProblemId
24
+	'optimization_problem_id'  =>  $optimizationProblemId
25 25
 );
26 26
 
27 27
 $problem = OptimizationProblem::reoptimize($problemParams);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\OptimizationProblem;
8 8
 use Route4Me\Route4Me;
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimization.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
 
23 23
 // Get an optimization problem
24 24
 $optimizationProblemParams = array(
25
-    "optimization_problem_id"  =>  $optimizationProblemId
25
+	"optimization_problem_id"  =>  $optimizationProblemId
26 26
 );
27 27
 
28 28
 $optimizationProblem = $optimization->get($optimizationProblemParams);
29 29
 
30 30
 foreach ((array)$optimizationProblem as $probParts) {
31
-    Route4Me::simplePrint((array)$probParts);    
31
+	Route4Me::simplePrint((array)$probParts);    
32 32
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Route4Me;
3 3
 
4
-$root = realpath(dirname(__FILE__) . '/../../');
5
-require $root . '/vendor/autoload.php';
4
+$root = realpath(dirname(__FILE__).'/../../');
5
+require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
8 8
 use Route4Me\OptimizationProblem;
Please login to merge, or discard this patch.
examples/get_route_manifest.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
-$root=realpath(dirname(__FILE__).'/../');
4
+$root = realpath(dirname(__FILE__).'/../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Route4Me;
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 $route = new Route();
16 16
 
17 17
 // Get a random route ID
18
-$route_id=$route->getRandomRouteId(0, 10);
18
+$route_id = $route->getRandomRouteId(0, 10);
19 19
 assert(!is_null($route_id), "Can't retrieve a random route ID");
20 20
 
21 21
 // Get route manifest 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
 
21 21
 // Get route manifest 
22 22
 $params = array(
23
-    "directions" => 1,
24
-    "route_id"   => $route_id
23
+	"directions" => 1,
24
+	"route_id"   => $route_id
25 25
 );
26 26
 
27 27
 $route = Route::getRoutes($params);
28 28
 
29 29
 foreach ($route->addresses as $addr1) {
30
-    Route4Me::simplePrint((array)$addr1, true);
31
-    echo "<br>";
30
+	Route4Me::simplePrint((array)$addr1, true);
31
+	echo "<br>";
32 32
 }
Please login to merge, or discard this patch.
examples/Order/RemoveOrder.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
 
31 31
 // Remove 2 random orders
32 32
 $orderParameters = Order::fromArray(array(
33
-    'order_ids' => array (
34
-        0 => $randomOrderID1,
35
-        1 => $randomOrderID2,
36
-      )
33
+	'order_ids' => array (
34
+		0 => $randomOrderID1,
35
+		1 => $randomOrderID2,
36
+	  )
37 37
 ));
38 38
 
39 39
 $response = $order->removeOrder($orderParameters);
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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 // Remove 2 random orders
32 32
 $orderParameters = Order::fromArray(array(
33
-    'order_ids' => array (
33
+    'order_ids' => array(
34 34
         0 => $randomOrderID1,
35 35
         1 => $randomOrderID2,
36 36
       )
Please login to merge, or discard this patch.