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 ( 16ec0a...d9a634 )
by Igor
08:39 queued 14s
created
examples/Vehicles/GetVehicles.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
 $vehicle = new Vehicle();
16 16
 
17 17
 $vehicleParameters = [
18
-        'with_pagination'   => true,
19
-        'page'              => 2,
20
-        'perPage'           => 10,
21
-    ];
18
+		'with_pagination'   => true,
19
+		'page'              => 2,
20
+		'perPage'           => 10,
21
+	];
22 22
 
23 23
 $response = $vehicle->getVehicles($vehicleParameters);
24 24
 
25 25
 foreach ($response['data'] as $key => $vehicle) {
26
-    Route4Me::simplePrint($vehicle);
27
-    echo '<br>';
26
+	Route4Me::simplePrint($vehicle);
27
+	echo '<br>';
28 28
 }
Please login to merge, or discard this patch.
examples/Vehicles/CreateVehicle.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -18,18 +18,18 @@
 block discarded – undo
18 18
 $vehicle = new Vehicle();
19 19
 
20 20
 $vehicleParameters = Vehicle::fromArray([
21
-    'vehicle_name'              => 'Ford Transit Test 4',
22
-    'vehicle_alias'             => 'Ford Transit Test 4',
23
-    'vehicle_vin'               => 'JS3TD62V1Y4107898',
24
-    'vehicle_reg_country_id'    => '223',
25
-    'vehicle_make'              => 'Ford',
26
-    'vehicle_model_year'        => 2013,
27
-    'vehicle_axle_count'        => 2,
28
-    'mpg_city'                  => 8,
29
-    'mpg_highway'               => 14,
30
-    'fuel_type'                 => 'unleaded 93',
31
-    'height_inches'             => 72,
32
-    'weight_lb'                 => 2000,
21
+	'vehicle_name'              => 'Ford Transit Test 4',
22
+	'vehicle_alias'             => 'Ford Transit Test 4',
23
+	'vehicle_vin'               => 'JS3TD62V1Y4107898',
24
+	'vehicle_reg_country_id'    => '223',
25
+	'vehicle_make'              => 'Ford',
26
+	'vehicle_model_year'        => 2013,
27
+	'vehicle_axle_count'        => 2,
28
+	'mpg_city'                  => 8,
29
+	'mpg_highway'               => 14,
30
+	'fuel_type'                 => 'unleaded 93',
31
+	'height_inches'             => 72,
32
+	'weight_lb'                 => 2000,
33 33
 ]);
34 34
 
35 35
 $result = $vehicle->createVehicle($vehicleParameters);
Please login to merge, or discard this patch.
examples/Vehicles/CreateLightTruck.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 Light',
22
-    'vehicle_alias'                     => 'GMC TopKick C5500 Light',
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'           => 'NO',
45
-    'UseTruckRestrictions'              => 'NO',
46
-    'DividedHighwayAvoidPreference'     => 'NEUTRAL',
47
-    'FreewayAvoidPreference'            => 'NEUTRAL',
48
-    'truck_config'                      => 'FULLSIZEVAN',
21
+	'vehicle_name'                      => 'GMC TopKick C5500 Light',
22
+	'vehicle_alias'                     => 'GMC TopKick C5500 Light',
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'           => 'NO',
45
+	'UseTruckRestrictions'              => 'NO',
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/RemoveVehicle.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
 // Remove the vehicle
25 25
 $vehicleParameters = Vehicle::fromArray([
26
-    'vehicle_id' => $randomVehicleID,
26
+	'vehicle_id' => $randomVehicleID,
27 27
 ]);
28 28
 
29 29
 $result = $vehicle->removeVehicle($vehicleParameters);
Please login to merge, or discard this patch.
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.