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 ( fd5711...77a95b )
by Igor
09:00 queued 13s
created
examples/optimizationWithFineTuningRoutes.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
 $addresses = [];
26 26
 
27 27
 foreach ($json as $address) {
28
-    $addresses[] = Address::fromArray($address);
28
+	$addresses[] = Address::fromArray($address);
29 29
 }
30 30
 
31 31
 $parameters = RouteParameters::fromArray([
32
-    'route_name'                => 'Oprimization Without FineTuning. '.date('Y-m-d H:i'),
33
-    'algorithm_type'            => AlgorithmType::CVRP_TW_SD,
34
-    'distance_unit'             => DistanceUnit::MILES,
35
-    'device_type'               => DeviceType::WEB,
36
-    'optimize'                  => OptimizationType::DISTANCE,
37
-    'metric'                    => Metric::GEODESIC,
38
-    'route_max_duration'        => 86400 * 2,
39
-    'travel_mode'               => TravelMode::DRIVING,
40
-    'vehicle_capacity'          => 50,
41
-    'vehicle_max_distance_mi'   => 10000,
42
-    'parts'                     => 50,
32
+	'route_name'                => 'Oprimization Without FineTuning. '.date('Y-m-d H:i'),
33
+	'algorithm_type'            => AlgorithmType::CVRP_TW_SD,
34
+	'distance_unit'             => DistanceUnit::MILES,
35
+	'device_type'               => DeviceType::WEB,
36
+	'optimize'                  => OptimizationType::DISTANCE,
37
+	'metric'                    => Metric::GEODESIC,
38
+	'route_max_duration'        => 86400 * 2,
39
+	'travel_mode'               => TravelMode::DRIVING,
40
+	'vehicle_capacity'          => 50,
41
+	'vehicle_max_distance_mi'   => 10000,
42
+	'parts'                     => 50,
43 43
 
44 44
 ]);
45 45
 
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
 $duplicatedRoute->parameters = new \stdClass();
70 70
 
71 71
 $duplicatedRoute->parameters = [
72
-    'target_duration'           => 100,
73
-    'target_distance'           => 1,
74
-    'target_wait_by_tail_size'  => 1,
75
-    'route_name'                => 'Oprimization With Duration Priority FineTuning. '.date('m-d-Y')
72
+	'target_duration'           => 100,
73
+	'target_distance'           => 1,
74
+	'target_wait_by_tail_size'  => 1,
75
+	'route_name'                => 'Oprimization With Duration Priority FineTuning. '.date('m-d-Y')
76 76
 ];
77 77
 
78 78
 $duplicatedRoute->httpheaders = 'Content-type: application/json';
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
 $duplicatedRoute2->parameters = new \stdClass();
106 106
 
107 107
 $duplicatedRoute2->parameters = [
108
-    'target_duration'           => 1,
109
-    'target_distance'           => 100,
110
-    'target_wait_by_tail_size'  => 1,
111
-    'route_name'                => 'Oprimization With Distance Priority FineTuning. '.date('m-d-Y')
108
+	'target_duration'           => 1,
109
+	'target_distance'           => 100,
110
+	'target_wait_by_tail_size'  => 1,
111
+	'route_name'                => 'Oprimization With Distance Priority FineTuning. '.date('m-d-Y')
112 112
 ];
113 113
 
114 114
 $duplicatedRoute2->httpheaders = 'Content-type: application/json';
@@ -128,5 +128,5 @@  discard block
 block discarded – undo
128 128
 echo "Route ID: ".$problems->getRoutes()[0]->route_id.'<br>';
129 129
 foreach ($problems as $problem) {
130 130
 
131
-    //Route4Me::simplePrint($problem, true);
131
+	//Route4Me::simplePrint($problem, true);
132 132
 }
Please login to merge, or discard this patch.
examples/Vehicles/CreateHazmatTruck.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -18,40 +18,40 @@
 block discarded – undo
18 18
 $vehicle = new Vehicle();
19 19
 
20 20
 $vehicleParameters = Vehicle::fromArray([
21
-    'vehicle_name'                      => 'ISUZU FTR',
22
-    'vehicle_alias'                     => 'ISUZU FTR',
23
-    'vehicle_vin'                       => '1NP5DB9X93N507873',
24
-    'vehicle_license_plate'             => 'IFT6253',
25
-    'license_start_date'                => '2008-05-14',
26
-    'license_end_date'                  => '2020-09-24',
27
-    'vehicle_model'                     => 'FTR',
28
-    'vehicle_model_year'                => 2008,
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'                          => 5,
35
-    'mpg_highway'                       => 15,
36
-    'fuel_type'                         => 'diesel',
37
-    'height_inches'                     => 112,
38
-    'height_metric'                     => 280,
39
-    'weight_lb'                         => 25950,
40
-    'maxWeightPerAxleGroupInPounds'     => 19000,
41
-    'max_weight_per_axle_group_metric'  => 8620,
42
-    'widthInInches'                     => 94,
43
-    'width_metric'                      => 235,
44
-    'lengthInInches'                    => 384,
45
-    'length_metric'                     => 960,
46
-    'Use53FootTrailerRouting'           => 'NO',
47
-    'UseTruckRestrictions'              => 'YES',
48
-    'DividedHighwayAvoidPreference'     => 'NEUTRAL',
49
-    'FreewayAvoidPreference'            => 'NEUTRAL',
50
-    'TollRoadUsage'                     => 'ALWAYS_AVOID',
51
-    'truck_config'                      => '26_STRAIGHT_TRUCK',
52
-    'InternationalBordersOpen'          => 'YES',
53
-    'purchased_new'                     => true,
54
-    'HazmatType'                        => 'FLAMMABLE',
21
+	'vehicle_name'                      => 'ISUZU FTR',
22
+	'vehicle_alias'                     => 'ISUZU FTR',
23
+	'vehicle_vin'                       => '1NP5DB9X93N507873',
24
+	'vehicle_license_plate'             => 'IFT6253',
25
+	'license_start_date'                => '2008-05-14',
26
+	'license_end_date'                  => '2020-09-24',
27
+	'vehicle_model'                     => 'FTR',
28
+	'vehicle_model_year'                => 2008,
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'                          => 5,
35
+	'mpg_highway'                       => 15,
36
+	'fuel_type'                         => 'diesel',
37
+	'height_inches'                     => 112,
38
+	'height_metric'                     => 280,
39
+	'weight_lb'                         => 25950,
40
+	'maxWeightPerAxleGroupInPounds'     => 19000,
41
+	'max_weight_per_axle_group_metric'  => 8620,
42
+	'widthInInches'                     => 94,
43
+	'width_metric'                      => 235,
44
+	'lengthInInches'                    => 384,
45
+	'length_metric'                     => 960,
46
+	'Use53FootTrailerRouting'           => 'NO',
47
+	'UseTruckRestrictions'              => 'YES',
48
+	'DividedHighwayAvoidPreference'     => 'NEUTRAL',
49
+	'FreewayAvoidPreference'            => 'NEUTRAL',
50
+	'TollRoadUsage'                     => 'ALWAYS_AVOID',
51
+	'truck_config'                      => '26_STRAIGHT_TRUCK',
52
+	'InternationalBordersOpen'          => 'YES',
53
+	'purchased_new'                     => true,
54
+	'HazmatType'                        => 'FLAMMABLE',
55 55
 ]);
56 56
 
57 57
 $result = $vehicle->createVehicle($vehicleParameters);
Please login to merge, or discard this patch.
examples/Vehicles/UpdateVehicle.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
 
24 24
 // Update the vehicle
25 25
 $vehicleParameters = Vehicle::fromArray([
26
-    'vehicle_id'                => $randomVehicleID,
27
-    'vehicle_model_year'        => 2013,
28
-    'vehicle_year_acquired'     => 2016,
29
-    'vehicle_reg_country_id'    => '223',
30
-    'vehicle_make'              => 'Ford',
31
-    'vehicle_axle_count'        => 3,
32
-    'fuel_type'                 => 'unleaded 93',
33
-    'height_inches'             => 74,
34
-    'weight_lb'                 => 2098,
26
+	'vehicle_id'                => $randomVehicleID,
27
+	'vehicle_model_year'        => 2013,
28
+	'vehicle_year_acquired'     => 2016,
29
+	'vehicle_reg_country_id'    => '223',
30
+	'vehicle_make'              => 'Ford',
31
+	'vehicle_axle_count'        => 3,
32
+	'fuel_type'                 => 'unleaded 93',
33
+	'height_inches'             => 74,
34
+	'weight_lb'                 => 2098,
35 35
 ]);
36 36
 
37 37
 $result = $vehicle->updateVehicle($vehicleParameters);
Please login to merge, or discard this patch.
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.