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 ( b54c2e...66b33a )
by Oleg
01:58
created
examples/Addresses/mark_address_as_visited.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 $addressRand = (array)$route->GetRandomAddressFromRoute($routeId);
24 24
 
25 25
 if (isset($addressRand['is_depot'])) {
26
-    if ($addressRand['is_depot']) {
27
-        echo "Random choosed address is depot, it can't be marked!.. Try again.";
28
-        return;
29
-    }
26
+	if ($addressRand['is_depot']) {
27
+		echo "Random choosed address is depot, it can't be marked!.. Try again.";
28
+		return;
29
+	}
30 30
 }
31 31
 
32 32
 // Get random address's id from selected route above
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
 $address = new Address();
40 40
 
41 41
 $params = array(
42
-    "route_id"    => $routeId,
43
-    "address_id"  =>  $route_destination_id,
44
-    "is_visited"  => 1,
45
-    "member_id"   => 1
42
+	"route_id"    => $routeId,
43
+	"address_id"  =>  $route_destination_id,
44
+	"is_visited"  => 1,
45
+	"member_id"   => 1
46 46
 );
47 47
 
48 48
 $result = $address->markAsVisited($params);
Please login to merge, or discard this patch.
examples/Tracking/GetDeviceTrackingHistoryFromTimeRange.php 2 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'        => 1,
33
-    'course'           => 1,
34
-    'speed'            => 120,
35
-    'lat'              => 41.8927521,
36
-    'lng'              => -109.0803888,
37
-    'device_type'      => 'android_phone',
38
-    'device_guid'      => 'qweqweqwe',
39
-    'device_timestamp' => date('Y-m-d H:i:s', strtotime('-2 day'))
30
+	'format'           => Format::SERIALIZED,
31
+	'route_id'         => $routeId,
32
+	'member_id'        => 1,
33
+	'course'           => 1,
34
+	'speed'            => 120,
35
+	'lat'              => 41.8927521,
36
+	'lng'              => -109.0803888,
37
+	'device_type'      => 'android_phone',
38
+	'device_guid'      => 'qweqweqwe',
39
+	'device_timestamp' => date('Y-m-d H:i:s', strtotime('-2 day'))
40 40
 ));
41 41
 
42 42
 $status = Track::set($params);
@@ -50,20 +50,20 @@  discard block
 block discarded – undo
50 50
 $endDate = time() + 1*24*3600;
51 51
 
52 52
 $params = array(
53
-    'route_id'     => $routeId,
54
-    'format'       => Format::JSON,
55
-    'time_period'  => 'custom',
56
-    'start_date'   => $startDate,
57
-    'end_date'     => $endDate
53
+	'route_id'     => $routeId,
54
+	'format'       => Format::JSON,
55
+	'time_period'  => 'custom',
56
+	'start_date'   => $startDate,
57
+	'end_date'     => $endDate
58 58
 );
59 59
 
60 60
 $result = $route->GetTrackingHistoryFromTimeRange($params);
61 61
 
62 62
 foreach ($result as $key => $value)
63 63
 {
64
-    if (is_array($value)) {
65
-        Route4Me::simplePrint($value);
66
-    } else {
67
-        echo "$key => $value <br>";
68
-    }
64
+	if (is_array($value)) {
65
+		Route4Me::simplePrint($value);
66
+	} else {
67
+		echo "$key => $value <br>";
68
+	}
69 69
 }
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
-$root=realpath(dirname(__FILE__).'/../../');
4
+$root = realpath(dirname(__FILE__).'/../../');
5 5
 require $root.'/vendor/autoload.php';
6 6
 
7 7
 use Route4Me\Enum\DeviceType;
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 assert($status['status'], "Can't send GPS position to the selected route");
47 47
 
48 48
 // Get the device tracking history from a time range
49
-$startDate = time() - 30*24*3600;
50
-$endDate = time() + 1*24*3600;
49
+$startDate = time() - 30 * 24 * 3600;
50
+$endDate = time() + 1 * 24 * 3600;
51 51
 
52 52
 $params = array(
53 53
     'route_id'     => $routeId,
Please login to merge, or discard this patch.
examples/Optimizations/GetOptimizations.php 1 patch
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.
examples/Order/OrderSearchInsertedDate.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16 16
 $orderParameters = Order::fromArray(array(
17
-    "day_added_YYMMDD"  => date("Y-m-d", strtotime('-1 days')),
18
-    "offset"            => 0,
19
-    "limit"             => 5
17
+	"day_added_YYMMDD"  => date("Y-m-d", strtotime('-1 days')),
18
+	"offset"            => 0,
19
+	"limit"             => 5
20 20
 ));
21 21
 
22 22
 $order = new Order();
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 $response = $order->getOrder($orderParameters);
25 25
 
26 26
 foreach ($response['results'] as $key => $order) {
27
-    Route4Me::simplePrint($order);
28
-    echo "<br>";
27
+	Route4Me::simplePrint($order);
28
+	echo "<br>";
29 29
 }
Please login to merge, or discard this patch.
examples/Order/OrderSearchScheduledDate.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 Route4Me::setApiKey('11111111111111111111111111111111');
15 15
 
16 16
 $orderParameters = Order::fromArray(array(
17
-    "scheduled_for_YYMMDD" => date("Y-m-d", strtotime('-1 days')),
18
-    "offset"               => 0,
19
-    "limit"                => 5
17
+	"scheduled_for_YYMMDD" => date("Y-m-d", strtotime('-1 days')),
18
+	"offset"               => 0,
19
+	"limit"                => 5
20 20
 ));
21 21
 
22 22
 $order = new Order();
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 $response = $order->getOrder($orderParameters);
25 25
 
26 26
 foreach ($response['results'] as $key => $order) {
27
-    Route4Me::simplePrint($order);
28
-    echo "<br>";
27
+	Route4Me::simplePrint($order);
28
+	echo "<br>";
29 29
 }
Please login to merge, or discard this patch.
examples/Order/UpdateOrder.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
 $randomOrder['address_2'] = "Lviv";
28 28
 $randomOrder['EXT_FIELD_phone'] = "032268593";
29 29
 $randomOrder['EXT_FIELD_custom_data'] = array(
30
-            0 => array(
31
-               "customer_no" => "11"
32
-            )
33
-        );
30
+			0 => array(
31
+			   "customer_no" => "11"
32
+			)
33
+		);
34 34
 
35 35
 $response = $order->updateOrder($randomOrder);
36 36
 
Please login to merge, or discard this patch.
examples/AvoidanceZones/AddAvoidanceZone.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
 
17 17
 $territoryParams['type'] = TerritoryTypes::CIRCLE;
18 18
 $territoryParams['data'] = array(
19
-    "37.569752822786455,-77.47833251953125",
20
-    "5000"
19
+	"37.569752822786455,-77.47833251953125",
20
+	"5000"
21 21
 );
22 22
 
23 23
 $AvoidanceZoneParameters = AvoidanceZone::fromArray(array(
24
-    "territory_name"   => "Test Circle Avoidance Zone ".strval(rand(10000, 99999)),
25
-    "territory_color"  => "ff7700",
26
-    "territory"        => $territoryParams
24
+	"territory_name"   => "Test Circle Avoidance Zone ".strval(rand(10000, 99999)),
25
+	"territory_color"  => "ff7700",
26
+	"territory"        => $territoryParams
27 27
 ));
28 28
 
29 29
 $avoidancezone = new AvoidanceZone();
Please login to merge, or discard this patch.
examples/AvoidanceZones/CreateRectZone.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
 
17 17
 $territoryParams['type'] = TerritoryTypes::RECT;
18 18
 $territoryParams['data'] = array(
19
-    "43.51668853502909,-109.3798828125",
20
-    "46.98025235521883,-101.865234375"
19
+	"43.51668853502909,-109.3798828125",
20
+	"46.98025235521883,-101.865234375"
21 21
 );
22 22
 
23 23
 $AvoidanceZoneParameters = AvoidanceZone::fromArray(array(
24
-    "territory_name"   => "Test Rectangular Avoidance Zone ".strval(rand(10000, 99999)),
25
-    "territory_color"  => "ff7700",
26
-    "territory"        => $territoryParams
24
+	"territory_name"   => "Test Rectangular Avoidance Zone ".strval(rand(10000, 99999)),
25
+	"territory_color"  => "ff7700",
26
+	"territory"        => $territoryParams
27 27
 ));
28 28
 
29 29
 $avoidancezone = new AvoidanceZone();
Please login to merge, or discard this patch.
examples/AvoidanceZones/CreatePolyZone.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@
 block discarded – undo
16 16
 
17 17
 $territoryParams['type'] = TerritoryTypes::POLY;
18 18
 $territoryParams['data'] = array(
19
-    "37.769752822786455,-77.67833251953125",
20
-        "37.75886716305343,-77.68974800109863",
21
-        "37.74763966054455,-77.6917221069336",
22
-        "37.74655084306813,-77.68863220214844",
23
-        "37.7502255383101,-77.68125076293945",
24
-        "37.74797991274437,-77.67498512268066",
25
-        "37.73327960206065,-77.6411678314209",
26
-        "37.74430510679532,-77.63172645568848",
27
-        "37.76641925847049,-77.66846199035645"
19
+	"37.769752822786455,-77.67833251953125",
20
+		"37.75886716305343,-77.68974800109863",
21
+		"37.74763966054455,-77.6917221069336",
22
+		"37.74655084306813,-77.68863220214844",
23
+		"37.7502255383101,-77.68125076293945",
24
+		"37.74797991274437,-77.67498512268066",
25
+		"37.73327960206065,-77.6411678314209",
26
+		"37.74430510679532,-77.63172645568848",
27
+		"37.76641925847049,-77.66846199035645"
28 28
 );
29 29
 
30 30
 $AvoidanceZoneParameters = AvoidanceZone::fromArray(array(
31
-    "territory_name"   => "Test Poligonian Avoidance Zone ".strval(rand(10000, 99999)),
32
-    "territory_color"  => "ff7700",
33
-    "territory"        => $territoryParams
31
+	"territory_name"   => "Test Poligonian Avoidance Zone ".strval(rand(10000, 99999)),
32
+	"territory_color"  => "ff7700",
33
+	"territory"        => $territoryParams
34 34
 ));
35 35
 
36 36
 $avoidancezone = new AvoidanceZone();
Please login to merge, or discard this patch.