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.
Test Failed
Push — master ( 6c805f...bce16d )
by Igor
09:12 queued 14s
created
examples/Vehicles/CreateMediumTruck.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -18,34 +18,34 @@
 block discarded – undo
18 18
 $vehicle = new Vehicle();
19 19
 
20 20
 $vehicleParameters = Vehicle::fromArray([
21
-    'vehicle_name'                      => 'GMC TopKick C5500 Medium',
22
-    'vehicle_alias'                     => 'GMC TopKick C5500 Medium',
23
-    'vehicle_vin'                       => 'SAJXA01A06FN08012',
24
-    'vehicle_license_plate'             => 'CVH4561',
25
-    'vehicle_model'                     => 'TopKick C5500',
26
-    'vehicle_model_year'                => 1995,
27
-    'vehicle_year_acquired'             => 2008,
28
-    'vehicle_reg_country_id'            => '223',
29
-    'vehicle_make'                      => 'GMC',
30
-    'vehicle_type_id'                   => 'pickup_truck',
31
-    'vehicle_axle_count'                => 2,
32
-    'mpg_city'                          => 7,
33
-    'mpg_highway'                       => 14,
34
-    'fuel_type'                         => 'diesel',
35
-    'height_inches'                     => 97,
36
-    'height_metric'                     => 243,
37
-    'weight_lb'                         => 19000,
38
-    'maxWeightPerAxleGroupInPounds'     => 9500,
39
-    'max_weight_per_axle_group_metric'  => 4300,
40
-    'widthInInches'                     => 96,
41
-    'width_metric'                      => 240,
42
-    'lengthInInches'                    => 244,
43
-    'length_metric'                     => 610,
44
-    'Use53FootTrailerRouting'           => 'YES',
45
-    'UseTruckRestrictions'              => 'YES',
46
-    'DividedHighwayAvoidPreference'     => 'NEUTRAL',
47
-    'FreewayAvoidPreference'            => 'NEUTRAL',
48
-    'truck_config'                      => 'FULLSIZEVAN',
21
+	'vehicle_name'                      => 'GMC TopKick C5500 Medium',
22
+	'vehicle_alias'                     => 'GMC TopKick C5500 Medium',
23
+	'vehicle_vin'                       => 'SAJXA01A06FN08012',
24
+	'vehicle_license_plate'             => 'CVH4561',
25
+	'vehicle_model'                     => 'TopKick C5500',
26
+	'vehicle_model_year'                => 1995,
27
+	'vehicle_year_acquired'             => 2008,
28
+	'vehicle_reg_country_id'            => '223',
29
+	'vehicle_make'                      => 'GMC',
30
+	'vehicle_type_id'                   => 'pickup_truck',
31
+	'vehicle_axle_count'                => 2,
32
+	'mpg_city'                          => 7,
33
+	'mpg_highway'                       => 14,
34
+	'fuel_type'                         => 'diesel',
35
+	'height_inches'                     => 97,
36
+	'height_metric'                     => 243,
37
+	'weight_lb'                         => 19000,
38
+	'maxWeightPerAxleGroupInPounds'     => 9500,
39
+	'max_weight_per_axle_group_metric'  => 4300,
40
+	'widthInInches'                     => 96,
41
+	'width_metric'                      => 240,
42
+	'lengthInInches'                    => 244,
43
+	'length_metric'                     => 610,
44
+	'Use53FootTrailerRouting'           => 'YES',
45
+	'UseTruckRestrictions'              => 'YES',
46
+	'DividedHighwayAvoidPreference'     => 'NEUTRAL',
47
+	'FreewayAvoidPreference'            => 'NEUTRAL',
48
+	'truck_config'                      => 'FULLSIZEVAN',
49 49
 ]);
50 50
 
51 51
 $result = $vehicle->createVehicle($vehicleParameters);
Please login to merge, or discard this patch.
examples/Vehicles/CreateSuperHeavyTruck.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -18,38 +18,38 @@
 block discarded – undo
18 18
 $vehicle = new Vehicle();
19 19
 
20 20
 $vehicleParameters = Vehicle::fromArray([
21
-    'vehicle_name'                      => 'Liebherr T 282B mining truck',
22
-    'vehicle_alias'                     => 'Liebherr T 282B mining truck',
23
-    'vehicle_vin'                       => '1NP5DB9X93N507873',
24
-    'vehicle_license_plate'             => 'LMT8765',
25
-    'license_start_date'                => '2008-04-12',
26
-    'license_end_date'                  => '2020-08-16',
27
-    'vehicle_model'                     => 'Liebherr T 282B',
28
-    'vehicle_model_year'                => 2004,
29
-    'vehicle_year_acquired'             => 2008,
30
-    'vehicle_reg_country_id'            => '223',
31
-    'vehicle_type_id'                   => 'bigrig',
32
-    'has_trailer'                       => false,
33
-    'vehicle_axle_count'                => 2,
34
-    'mpg_city'                          => 2,
35
-    'mpg_highway'                       => 4,
36
-    'fuel_type'                         => 'diesel',
37
-    'height_inches'                     => 596,
38
-    'height_metric'                     => 1490,
39
-    'weight_lb'                         => 1316000,
40
-    'maxWeightPerAxleGroupInPounds'     => 658000,
41
-    'max_weight_per_axle_group_metric'  => 298450,
42
-    'widthInInches'                     => 381,
43
-    'width_metric'                      => 952,
44
-    'lengthInInches'                    => 613,
45
-    'length_metric'                     => 1532,
46
-    'Use53FootTrailerRouting'           => 'YES',
47
-    'UseTruckRestrictions'              => 'YES',
48
-    'DividedHighwayAvoidPreference'     => 'STRONG_AVOID',
49
-    'FreewayAvoidPreference'            => 'STRONG_AVOID',
50
-    'truck_config'                      => '53_SEMI_TRAILER',
51
-    'InternationalBordersOpen'          => 'YES',
52
-    'purchased_new'                     => true,
21
+	'vehicle_name'                      => 'Liebherr T 282B mining truck',
22
+	'vehicle_alias'                     => 'Liebherr T 282B mining truck',
23
+	'vehicle_vin'                       => '1NP5DB9X93N507873',
24
+	'vehicle_license_plate'             => 'LMT8765',
25
+	'license_start_date'                => '2008-04-12',
26
+	'license_end_date'                  => '2020-08-16',
27
+	'vehicle_model'                     => 'Liebherr T 282B',
28
+	'vehicle_model_year'                => 2004,
29
+	'vehicle_year_acquired'             => 2008,
30
+	'vehicle_reg_country_id'            => '223',
31
+	'vehicle_type_id'                   => 'bigrig',
32
+	'has_trailer'                       => false,
33
+	'vehicle_axle_count'                => 2,
34
+	'mpg_city'                          => 2,
35
+	'mpg_highway'                       => 4,
36
+	'fuel_type'                         => 'diesel',
37
+	'height_inches'                     => 596,
38
+	'height_metric'                     => 1490,
39
+	'weight_lb'                         => 1316000,
40
+	'maxWeightPerAxleGroupInPounds'     => 658000,
41
+	'max_weight_per_axle_group_metric'  => 298450,
42
+	'widthInInches'                     => 381,
43
+	'width_metric'                      => 952,
44
+	'lengthInInches'                    => 613,
45
+	'length_metric'                     => 1532,
46
+	'Use53FootTrailerRouting'           => 'YES',
47
+	'UseTruckRestrictions'              => 'YES',
48
+	'DividedHighwayAvoidPreference'     => 'STRONG_AVOID',
49
+	'FreewayAvoidPreference'            => 'STRONG_AVOID',
50
+	'truck_config'                      => '53_SEMI_TRAILER',
51
+	'InternationalBordersOpen'          => 'YES',
52
+	'purchased_new'                     => true,
53 53
 ]);
54 54
 
55 55
 $result = $vehicle->createVehicle($vehicleParameters);
Please login to merge, or discard this patch.
examples/Vehicles/CreateHeavyTruck.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -18,39 +18,39 @@
 block discarded – undo
18 18
 $vehicle = new Vehicle();
19 19
 
20 20
 $vehicleParameters = Vehicle::fromArray([
21
-    'vehicle_name'                      => 'Peterbilt 579',
22
-    'vehicle_alias'                     => 'Peterbilt 579',
23
-    'vehicle_vin'                       => '1NP5DB9X93N507873',
24
-    'vehicle_license_plate'             => 'PPV7516',
25
-    'license_start_date'                => '2017-06-05',
26
-    'license_end_date'                  => '2021-08-14',
27
-    'vehicle_model'                     => '579',
28
-    'vehicle_model_year'                => 2015,
29
-    'vehicle_year_acquired'             => 2018,
30
-    'vehicle_reg_country_id'            => '223',
31
-    'vehicle_make'                      => 'Peterbilt',
32
-    'vehicle_type_id'                   => 'tractor_trailer',
33
-    'has_trailer'                       => true,
34
-    'vehicle_axle_count'                => 4,
35
-    'mpg_city'                          => 6,
36
-    'mpg_highway'                       => 12,
37
-    'fuel_type'                         => 'diesel',
38
-    'height_inches'                     => 114,
39
-    'height_metric'                     => 290,
40
-    'weight_lb'                         => 50350,
41
-    'maxWeightPerAxleGroupInPounds'     => 40000,
42
-    'max_weight_per_axle_group_metric'  => 18000,
43
-    'widthInInches'                     => 102,
44
-    'width_metric'                      => 258,
45
-    'lengthInInches'                    => 640,
46
-    'length_metric'                     => 1625,
47
-    'Use53FootTrailerRouting'           => 'YES',
48
-    'UseTruckRestrictions'              => 'YES',
49
-    'DividedHighwayAvoidPreference'     => 'STRONG_AVOID',
50
-    'FreewayAvoidPreference'            => 'STRONG_AVOID',
51
-    'truck_config'                      => '53_SEMI_TRAILER',
52
-    'InternationalBordersOpen'          => 'YES',
53
-    'purchased_new'                     => true,
21
+	'vehicle_name'                      => 'Peterbilt 579',
22
+	'vehicle_alias'                     => 'Peterbilt 579',
23
+	'vehicle_vin'                       => '1NP5DB9X93N507873',
24
+	'vehicle_license_plate'             => 'PPV7516',
25
+	'license_start_date'                => '2017-06-05',
26
+	'license_end_date'                  => '2021-08-14',
27
+	'vehicle_model'                     => '579',
28
+	'vehicle_model_year'                => 2015,
29
+	'vehicle_year_acquired'             => 2018,
30
+	'vehicle_reg_country_id'            => '223',
31
+	'vehicle_make'                      => 'Peterbilt',
32
+	'vehicle_type_id'                   => 'tractor_trailer',
33
+	'has_trailer'                       => true,
34
+	'vehicle_axle_count'                => 4,
35
+	'mpg_city'                          => 6,
36
+	'mpg_highway'                       => 12,
37
+	'fuel_type'                         => 'diesel',
38
+	'height_inches'                     => 114,
39
+	'height_metric'                     => 290,
40
+	'weight_lb'                         => 50350,
41
+	'maxWeightPerAxleGroupInPounds'     => 40000,
42
+	'max_weight_per_axle_group_metric'  => 18000,
43
+	'widthInInches'                     => 102,
44
+	'width_metric'                      => 258,
45
+	'lengthInInches'                    => 640,
46
+	'length_metric'                     => 1625,
47
+	'Use53FootTrailerRouting'           => 'YES',
48
+	'UseTruckRestrictions'              => 'YES',
49
+	'DividedHighwayAvoidPreference'     => 'STRONG_AVOID',
50
+	'FreewayAvoidPreference'            => 'STRONG_AVOID',
51
+	'truck_config'                      => '53_SEMI_TRAILER',
52
+	'InternationalBordersOpen'          => 'YES',
53
+	'purchased_new'                     => true,
54 54
 ]);
55 55
 
56 56
 $result = $vehicle->createVehicle($vehicleParameters);
Please login to merge, or discard this patch.
examples/Tracking/GetAllUserLocations.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
 $userLocations = $track->getUserLocations();
19 19
 
20 20
 foreach ($userLocations As $memberId => $userLocation) {
21
-    echo $userLocation['member_data']['member_first_name'].' '.$userLocation['member_data']['member_last_name']." --> ";
22
-    if (isset($userLocation['tracking']['position_lng'])) {
23
-        echo "Longitude: ".$userLocation['tracking']['position_lng'].", Latitude: ".$userLocation['tracking']['position_lat'];
24
-    }
25
-    echo "<br>";
21
+	echo $userLocation['member_data']['member_first_name'].' '.$userLocation['member_data']['member_last_name']." --> ";
22
+	if (isset($userLocation['tracking']['position_lng'])) {
23
+		echo "Longitude: ".$userLocation['tracking']['position_lng'].", Latitude: ".$userLocation['tracking']['position_lat'];
24
+	}
25
+	echo "<br>";
26 26
 }
Please login to merge, or discard this patch.
examples/Tracking/AssetTracking.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@  discard block
 block discarded – undo
24 24
 assert(!is_null($addresses), "Cannot retrieve a random route ID");
25 25
 
26 26
 foreach ($addresses as $addr1) {
27
-    if (!is_null($addr1->tracking_number)) {
28
-        $trackingNumber = $addr1->tracking_number;
29
-        break;
30
-    }
27
+	if (!is_null($addr1->tracking_number)) {
28
+		$trackingNumber = $addr1->tracking_number;
29
+		break;
30
+	}
31 31
 }
32 32
 
33 33
 assert(!is_null($trackingNumber), "Cannot select a tracking number");
34 34
 
35 35
 $params = [
36
-    'tracking' => $trackingNumber,
36
+	'tracking' => $trackingNumber,
37 37
 ];
38 38
 
39 39
 $route = new Route();
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 $result = $route->GetAssetTracking($params);
42 42
 
43 43
 foreach ($result as $key => $value) {
44
-    if (is_array($value)) {
45
-        Route4Me::simplePrint($value, true);
46
-    } else {
47
-        echo "$key => $value <br>";
48
-    }
44
+	if (is_array($value)) {
45
+		Route4Me::simplePrint($value, true);
46
+	} else {
47
+		echo "$key => $value <br>";
48
+	}
49 49
 }
Please login to merge, or discard this patch.
examples/Tracking/SetGPSPosition.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,16 +27,16 @@
 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([
30
-    'format'            => Format::CSV,
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('-1 day')),
30
+	'format'            => Format::CSV,
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('-1 day')),
40 40
 ]);
41 41
 
42 42
 $status = Track::set($params);
Please login to merge, or discard this patch.
examples/Tracking/GetDeviceTrackingHistoryFromTimeRange.php 1 patch
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([
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,19 +50,19 @@  discard block
 block discarded – undo
50 50
 $endDate = time() + 1 * 24 * 3600;
51 51
 
52 52
 $params = [
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
-    if (is_array($value)) {
64
-        Route4Me::simplePrint($value);
65
-    } else {
66
-        echo "$key => $value <br>";
67
-    }
63
+	if (is_array($value)) {
64
+		Route4Me::simplePrint($value);
65
+	} else {
66
+		echo "$key => $value <br>";
67
+	}
68 68
 }
Please login to merge, or discard this patch.
examples/Tracking/TrackDeviceLastLocationHistory.php 1 patch
Indentation   +22 added lines, -22 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([
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,25 +46,25 @@  discard block
 block discarded – undo
46 46
 assert($status['status'], "Cannot send GPS position to the selected route");
47 47
 
48 48
 if (!$status) {
49
-    echo 'Setting of GPS position failed';
49
+	echo 'Setting of GPS position failed';
50 50
 
51
-    return;
51
+	return;
52 52
 }
53 53
 
54 54
 $params = [
55
-    'route_id'                => $routeId,
56
-    'device_tracking_history' => '1',
55
+	'route_id'                => $routeId,
56
+	'device_tracking_history' => '1',
57 57
 ];
58 58
 
59 59
 $result = $route->GetLastLocation($params);
60 60
 
61 61
 if (isset($result->tracking_history)) {
62
-    foreach ($result->tracking_history as $history) {
63
-        echo 'Speed         --> '.$history['s'].'<br>';
64
-        echo 'course        --> '.$history['d'].'<br>';
65
-        echo 'Timestamp     --> '.$history['ts_friendly'].'<br>';
66
-        echo 'Latitude      --> '.$history['lt'].'<br>';
67
-        echo 'Longitude     --> '.$history['lg'].'<br>';
68
-        echo '========================================<br><br>';
69
-    }
62
+	foreach ($result->tracking_history as $history) {
63
+		echo 'Speed         --> '.$history['s'].'<br>';
64
+		echo 'course        --> '.$history['d'].'<br>';
65
+		echo 'Timestamp     --> '.$history['ts_friendly'].'<br>';
66
+		echo 'Latitude      --> '.$history['lt'].'<br>';
67
+		echo 'Longitude     --> '.$history['lg'].'<br>';
68
+		echo '========================================<br><br>';
69
+	}
70 70
 }
Please login to merge, or discard this patch.
examples/Tracking/QueryUserLocations.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,9 +22,9 @@
 block discarded – undo
22 22
 $queriedUserLocations = $track->getUserLocations($email);
23 23
 
24 24
 foreach ($queriedUserLocations As $memberId => $userLocation) {
25
-    echo $userLocation['member_data']['member_first_name'].' '.$userLocation['member_data']['member_last_name']." --> ";
26
-    if (isset($userLocation['tracking']['position_lng'])) {
27
-        echo "Longitude: ".$userLocation['tracking']['position_lng'].", Latitude: ".$userLocation['tracking']['position_lat'];
28
-    }
29
-    echo "<br>";
25
+	echo $userLocation['member_data']['member_first_name'].' '.$userLocation['member_data']['member_last_name']." --> ";
26
+	if (isset($userLocation['tracking']['position_lng'])) {
27
+		echo "Longitude: ".$userLocation['tracking']['position_lng'].", Latitude: ".$userLocation['tracking']['position_lat'];
28
+	}
29
+	echo "<br>";
30 30
 }
Please login to merge, or discard this patch.