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 ( d9a634...e591c7 )
by Juan Jose
07:17 queued 16s
created
examples/AdvancedConstraints/DriversDifferentWorkingTimeWithTerritories.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 //**********************************************************************
30 30
 // General Route Parameters
31 31
 $parameters = RouteParameters::fromArray([
32
-    'rt' => true,
33
-    'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
34
-    'route_name' => 'Drivers Different Working Time Example - Territories '.date('Y-m-d H:i:s', time()),
35
-    'distance_unit' => DistanceUnit::MILES,
36
-    'device_type' => DeviceType::WEB,
37
-    'optimize' => OptimizationType::DISTANCE,
38
-    'travel_mode' => TravelMode::DRIVING,
39
-    'parts' => 10,
40
-    'advanced_constraints'=> [] 
32
+	'rt' => true,
33
+	'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
34
+	'route_name' => 'Drivers Different Working Time Example - Territories '.date('Y-m-d H:i:s', time()),
35
+	'distance_unit' => DistanceUnit::MILES,
36
+	'device_type' => DeviceType::WEB,
37
+	'optimize' => OptimizationType::DISTANCE,
38
+	'travel_mode' => TravelMode::DRIVING,
39
+	'parts' => 10,
40
+	'advanced_constraints'=> [] 
41 41
 ]);
42 42
 
43 43
 //**********************************************************************
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
 // Full Time Window End:   15:00 am EST
52 52
 for($i = 0; $i < 6; ++$i)
53 53
 {
54
-    $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
55
-        'max_cargo_volume' => 0.0,
56
-        'members_count' => 100,
57
-        'available_time_windows' => [[(7 + 5) * 3600, ($i % 2 == 0 ? (11 + 5) : (15 + 5)) * 3600]],
58
-        'tags' => $zones[intdiv($i, 2) % 3]
59
-    ]);
54
+	$parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
55
+		'max_cargo_volume' => 0.0,
56
+		'members_count' => 100,
57
+		'available_time_windows' => [[(7 + 5) * 3600, ($i % 2 == 0 ? (11 + 5) : (15 + 5)) * 3600]],
58
+		'tags' => $zones[intdiv($i, 2) % 3]
59
+	]);
60 60
 }
61 61
 
62 62
 //**********************************************************************
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 $addresses = [];
66 66
 
67 67
 foreach ($json as $address) {
68
-    $addresses[] = Address::fromArray($address);
68
+	$addresses[] = Address::fromArray($address);
69 69
 }
70 70
 
71 71
 $optimizationParams = new OptimizationProblemParams();
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
 echo "Routes:" . PHP_EOL;
84 84
 foreach($problem->routes as $route)
85 85
 {
86
-    echo "\tID: " . $route->route_id . PHP_EOL;
87
-    echo "\tDistance: " . $route->trip_distance . PHP_EOL;
86
+	echo "\tID: " . $route->route_id . PHP_EOL;
87
+	echo "\tDistance: " . $route->trip_distance . PHP_EOL;
88 88
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 // Time Window Start:       7:00 am EST
50 50
 // Part Time Window End:   11:00 am EST
51 51
 // Full Time Window End:   15:00 am EST
52
-for($i = 0; $i < 6; ++$i)
52
+for ($i = 0; $i<6; ++$i)
53 53
 {
54 54
     $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
55 55
         'max_cargo_volume' => 0.0,
56 56
         'members_count' => 100,
57
-        'available_time_windows' => [[(7 + 5) * 3600, ($i % 2 == 0 ? (11 + 5) : (15 + 5)) * 3600]],
57
+        'available_time_windows' => [[(7 + 5) * 3600, ($i % 2==0 ? (11 + 5) : (15 + 5)) * 3600]],
58 58
         'tags' => $zones[intdiv($i, 2) % 3]
59 59
     ]);
60 60
 }
@@ -74,15 +74,15 @@  discard block
 block discarded – undo
74 74
 
75 75
 $problem = OptimizationProblem::optimize($optimizationParams);
76 76
 
77
-echo "Optimization Problem ID: " . $problem->optimization_problem_id . PHP_EOL;
78
-echo "State: " . OptimizationStates::getName($problem->state) . " (" . $problem->state . ")" . PHP_EOL;
77
+echo "Optimization Problem ID: ".$problem->optimization_problem_id.PHP_EOL;
78
+echo "State: ".OptimizationStates::getName($problem->state)." (".$problem->state.")".PHP_EOL;
79 79
 
80
-echo "Optimization Problem ID: " . $problem->optimization_problem_id . PHP_EOL;
81
-echo "State: " . OptimizationStates::getName($problem->state) . " (" . $problem->state . ")" . PHP_EOL;
80
+echo "Optimization Problem ID: ".$problem->optimization_problem_id.PHP_EOL;
81
+echo "State: ".OptimizationStates::getName($problem->state)." (".$problem->state.")".PHP_EOL;
82 82
 
83
-echo "Routes:" . PHP_EOL;
84
-foreach($problem->routes as $route)
83
+echo "Routes:".PHP_EOL;
84
+foreach ($problem->routes as $route)
85 85
 {
86
-    echo "\tID: " . $route->route_id . PHP_EOL;
87
-    echo "\tDistance: " . $route->trip_distance . PHP_EOL;
86
+    echo "\tID: ".$route->route_id.PHP_EOL;
87
+    echo "\tDistance: ".$route->trip_distance.PHP_EOL;
88 88
 }
Please login to merge, or discard this patch.
examples/AdvancedConstraints/DriversTimeShift.php 3 patches
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@  discard block
 block discarded – undo
23 23
 //**********************************************************************
24 24
 // General Route Parameters
25 25
 $parameters = RouteParameters::fromArray([
26
-    'rt' => true,
27
-    'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
28
-    'route_name' => 'Driver Shift Example - SDMD '.date('Y-m-d H:i:s', time()),
29
-    'route_time' => 0,
30
-    'distance_unit' => DistanceUnit::MILES,
31
-    'device_type' => DeviceType::WEB,
32
-    'optimize' => OptimizationType::DISTANCE,
33
-    'travel_mode' => TravelMode::DRIVING,
34
-    'vehicle_capacity' => 100,
35
-    'vehicle_max_distance_mi' => 10000,
36
-    'route_max_duration' => 86400,
37
-    'parts' => 20,
38
-    'advanced_constraints' => [] 
26
+	'rt' => true,
27
+	'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
28
+	'route_name' => 'Driver Shift Example - SDMD '.date('Y-m-d H:i:s', time()),
29
+	'route_time' => 0,
30
+	'distance_unit' => DistanceUnit::MILES,
31
+	'device_type' => DeviceType::WEB,
32
+	'optimize' => OptimizationType::DISTANCE,
33
+	'travel_mode' => TravelMode::DRIVING,
34
+	'vehicle_capacity' => 100,
35
+	'vehicle_max_distance_mi' => 10000,
36
+	'route_max_duration' => 86400,
37
+	'parts' => 20,
38
+	'advanced_constraints' => [] 
39 39
 ]);
40 40
 
41 41
 //**********************************************************************
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 // Time Window Start:  2:00 am EST
45 45
 // Time Window End:   15:50 am EST
46 46
 $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
47
-    'max_cargo_volume' => 0.0,
48
-    'max_capacity' => 200,
49
-    'members_count' => 10,
50
-    'available_time_windows' => [[25200, 75000]],
51
-    'tags' => ['TAG001', 'TAG002']
47
+	'max_cargo_volume' => 0.0,
48
+	'max_capacity' => 200,
49
+	'members_count' => 10,
50
+	'available_time_windows' => [[25200, 75000]],
51
+	'tags' => ['TAG001', 'TAG002']
52 52
 ]);
53 53
 
54 54
 // Schedule 2
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 // Time Window Start: 12:13 am EST
58 58
 // Time Window End:   18:36 am EST
59 59
 $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
60
-    'max_cargo_volume' => 0.0,
61
-    'max_capacity' => 500,
62
-    'members_count' => 6,
63
-    'available_time_windows' => [[45200, 55000], [62000, 85000]],
64
-    'tags' => ['TAG003']
60
+	'max_cargo_volume' => 0.0,
61
+	'max_capacity' => 500,
62
+	'members_count' => 6,
63
+	'available_time_windows' => [[45200, 55000], [62000, 85000]],
64
+	'tags' => ['TAG003']
65 65
 ]);
66 66
 
67 67
 //**********************************************************************
@@ -70,31 +70,31 @@  discard block
 block discarded – undo
70 70
 
71 71
 // Depot
72 72
 $addresses[] = Address::fromArray([
73
-    'address' => '1604 PARKRIDGE PKWY, Louisville, KY, 40214',
74
-    'is_depot' => true,
75
-    'lat' => 38.141598,
76
-    'lng' => -85.793846,
77
-    'time' => 300
73
+	'address' => '1604 PARKRIDGE PKWY, Louisville, KY, 40214',
74
+	'is_depot' => true,
75
+	'lat' => 38.141598,
76
+	'lng' => -85.793846,
77
+	'time' => 300
78 78
 ]);
79 79
 
80 80
 // Stops
81 81
 $n = 0;
82 82
 foreach ($json as $address) {
83
-    $addr_obj = Address::fromArray([
84
-        'address' => $address['address'],
85
-        'lat' => $address['lat'],
86
-        'lng' => $address['lng'],
87
-        'time' => $address['time'],
88
-        'tags' => ($n < 4 ? ['TAG001', 'TAG002'] : ['TAG003'])
89
-    ]);
90
-
91
-    if($n >= 4)
92
-    {
93
-        $addr_obj->time_window_start = $address['time_window_start'];
94
-        $addr_obj->time_window_end = $address['time_window_end'];
95
-    }
96
-    $addresses[] = $addr_obj;
97
-    ++$n;
83
+	$addr_obj = Address::fromArray([
84
+		'address' => $address['address'],
85
+		'lat' => $address['lat'],
86
+		'lng' => $address['lng'],
87
+		'time' => $address['time'],
88
+		'tags' => ($n < 4 ? ['TAG001', 'TAG002'] : ['TAG003'])
89
+	]);
90
+
91
+	if($n >= 4)
92
+	{
93
+		$addr_obj->time_window_start = $address['time_window_start'];
94
+		$addr_obj->time_window_end = $address['time_window_end'];
95
+	}
96
+	$addresses[] = $addr_obj;
97
+	++$n;
98 98
 }
99 99
 
100 100
 $optimizationParams = new OptimizationProblemParams();
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
 echo "Routes:" . PHP_EOL;
110 110
 foreach($problem->routes as $route)
111 111
 {
112
-    echo "\tID: " . $route->route_id . PHP_EOL;
113
-    echo "\tDistance: " . $route->trip_distance . PHP_EOL;
114
-    echo "\tAddresses:" . PHP_EOL;
112
+	echo "\tID: " . $route->route_id . PHP_EOL;
113
+	echo "\tDistance: " . $route->trip_distance . PHP_EOL;
114
+	echo "\tAddresses:" . PHP_EOL;
115 115
 
116
-    foreach($route->addresses as $address) echo "\t\t" . $address->address . PHP_EOL;
116
+	foreach($route->addresses as $address) echo "\t\t" . $address->address . PHP_EOL;
117 117
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
         'lat' => $address['lat'],
86 86
         'lng' => $address['lng'],
87 87
         'time' => $address['time'],
88
-        'tags' => ($n < 4 ? ['TAG001', 'TAG002'] : ['TAG003'])
88
+        'tags' => ($n<4 ? ['TAG001', 'TAG002'] : ['TAG003'])
89 89
     ]);
90 90
 
91
-    if($n >= 4)
91
+    if ($n>=4)
92 92
     {
93 93
         $addr_obj->time_window_start = $address['time_window_start'];
94 94
         $addr_obj->time_window_end = $address['time_window_end'];
@@ -103,15 +103,15 @@  discard block
 block discarded – undo
103 103
 
104 104
 $problem = OptimizationProblem::optimize($optimizationParams);
105 105
 
106
-echo "Optimization Problem ID: " . $problem->optimization_problem_id . PHP_EOL;
107
-echo "State: " . OptimizationStates::getName($problem->state) . " (" . $problem->state . ")" . PHP_EOL;
106
+echo "Optimization Problem ID: ".$problem->optimization_problem_id.PHP_EOL;
107
+echo "State: ".OptimizationStates::getName($problem->state)." (".$problem->state.")".PHP_EOL;
108 108
 
109
-echo "Routes:" . PHP_EOL;
110
-foreach($problem->routes as $route)
109
+echo "Routes:".PHP_EOL;
110
+foreach ($problem->routes as $route)
111 111
 {
112
-    echo "\tID: " . $route->route_id . PHP_EOL;
113
-    echo "\tDistance: " . $route->trip_distance . PHP_EOL;
114
-    echo "\tAddresses:" . PHP_EOL;
112
+    echo "\tID: ".$route->route_id.PHP_EOL;
113
+    echo "\tDistance: ".$route->trip_distance.PHP_EOL;
114
+    echo "\tAddresses:".PHP_EOL;
115 115
 
116
-    foreach($route->addresses as $address) echo "\t\t" . $address->address . PHP_EOL;
116
+    foreach ($route->addresses as $address) echo "\t\t".$address->address.PHP_EOL;
117 117
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,5 +103,7 @@
 block discarded – undo
103 103
     echo "\tDistance: " . $route->trip_distance . PHP_EOL;
104 104
     echo "\tAddresses:" . PHP_EOL;
105 105
 
106
-    foreach($route->addresses as $address) echo "\t\t" . $address->address . PHP_EOL;
107
-}
106
+    foreach($route->addresses as $address) {
107
+    	echo "\t\t" . $address->address . PHP_EOL;
108
+    }
109
+    }
Please login to merge, or discard this patch.
examples/AdvancedConstraints/OptimizationUsingTerritoriesAddresses.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@  discard block
 block discarded – undo
24 24
 //**********************************************************************
25 25
 // General Route Parameters
26 26
 $parameters = RouteParameters::fromArray([
27
-    'rt' => true,
28
-    'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
29
-    'route_name' => 'Single Depot, Multiple Driver - 3 Territories IDs '.date('Y-m-d H:i:s', time()),
30
-    'route_time' => 46800,
31
-    'distance_unit' => DistanceUnit::MILES,
32
-    'device_type' => DeviceType::WEB,
33
-    'optimize' => OptimizationType::DISTANCE,
34
-    'travel_mode' => TravelMode::DRIVING,
35
-    'advanced_constraints' => [] 
27
+	'rt' => true,
28
+	'algorithm_type' => Algorithmtype::ADVANCED_CVRP_TW,
29
+	'route_name' => 'Single Depot, Multiple Driver - 3 Territories IDs '.date('Y-m-d H:i:s', time()),
30
+	'route_time' => 46800,
31
+	'distance_unit' => DistanceUnit::MILES,
32
+	'device_type' => DeviceType::WEB,
33
+	'optimize' => OptimizationType::DISTANCE,
34
+	'travel_mode' => TravelMode::DRIVING,
35
+	'advanced_constraints' => [] 
36 36
 ]);
37 37
 
38 38
 //**********************************************************************
@@ -41,30 +41,30 @@  discard block
 block discarded – undo
41 41
 // Time Window Start:  8:00 am EST
42 42
 // Time Window End:   11:00 am EST
43 43
 $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
44
-    'max_cargo_volume' =>  0.0,
45
-    'members_count' =>  3,
46
-    'available_time_windows' => [[46800, 57600]],
47
-    'tags' => ['A34BA30C717D1194FC0230252DF0C45C']
44
+	'max_cargo_volume' =>  0.0,
45
+	'members_count' =>  3,
46
+	'available_time_windows' => [[46800, 57600]],
47
+	'tags' => ['A34BA30C717D1194FC0230252DF0C45C']
48 48
 ]);
49 49
 
50 50
 // Schedule 2
51 51
 // Time Window Start:  8:00 am EST
52 52
 // Time Window End:   12:00 am EST
53 53
 $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
54
-    'max_cargo_volume' =>  0.0,
55
-    'members_count' =>  4,
56
-    'available_time_windows' => [[46800, 61200]],
57
-    'tags' => ['DA6A8F10313CCFEC843978FC065F235B']
54
+	'max_cargo_volume' =>  0.0,
55
+	'members_count' =>  4,
56
+	'available_time_windows' => [[46800, 61200]],
57
+	'tags' => ['DA6A8F10313CCFEC843978FC065F235B']
58 58
 ]);
59 59
 
60 60
 // Schedule 3
61 61
 // Time Window Start:  8:00 am EST
62 62
 // Time Window End:   13:00 am EST
63 63
 $parameters->advanced_constraints[] = RouteAdvancedConstraints::fromArray([
64
-    'max_cargo_volume' =>  0.0,
65
-    'members_count' =>  3,
66
-    'available_time_windows' => [[46800, 64800]],
67
-    'tags' =>  ['8142ABF2D693336987726ECDB5ED2D6D']
64
+	'max_cargo_volume' =>  0.0,
65
+	'members_count' =>  3,
66
+	'available_time_windows' => [[46800, 64800]],
67
+	'tags' =>  ['8142ABF2D693336987726ECDB5ED2D6D']
68 68
 ]);
69 69
 
70 70
 //**********************************************************************
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 $addresses = [];
74 74
 
75 75
 foreach ($json as $address) {
76
-    $addresses[] = Address::fromArray($address);
76
+	$addresses[] = Address::fromArray($address);
77 77
 }
78 78
 
79 79
 $optimizationParams = new OptimizationProblemParams();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,5 +82,5 @@
 block discarded – undo
82 82
 
83 83
 $problem = OptimizationProblem::optimize($optimizationParams);
84 84
 
85
-echo "Optimization Problem ID: " . $problem->optimization_problem_id . PHP_EOL;
86
-echo "State: " . OptimizationStates::getName($problem->state) . " (" . $problem->state . ")" . PHP_EOL;
85
+echo "Optimization Problem ID: ".$problem->optimization_problem_id.PHP_EOL;
86
+echo "State: ".OptimizationStates::getName($problem->state)." (".$problem->state.")".PHP_EOL;
Please login to merge, or discard this patch.
src/Route4Me/Enum/StatusUpdateType.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -4,25 +4,25 @@
 block discarded – undo
4 4
 
5 5
 class StatusUpdateType
6 6
 {
7
-    const PICKUP = 'pickup';
8
-    const DROPOFF = 'dropoff';
9
-    const NOANSWER = 'noanswer';
10
-    const NOTFOUND = 'notfound';
11
-    const NOTPAID = 'notpaid';
12
-    const PAID = 'paid';
13
-    const WRONGDELIVERY = 'wrongdelivery';
14
-    const WRONGADDRESSRECIPIENT = 'wrongaddressrecipient';
15
-    const NOTPRESENT = 'notpresent';
16
-    const PARTS_MISSING = 'parts_missing';
17
-    const SERVICE_RENDERED = 'service_rendered';
18
-    const FOLLOW_UP = 'follow_up';
19
-    const LEFT_INFORMATION = 'left_information';
20
-    const SPOKE_WITH_DECISION_MAKER = 'spoke_with_decision_maker';
21
-    const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
22
-    const COMPETITIVE_ACCOUNT = 'competitive_account';
23
-    const SCHEDULED_FOLLOW_UP_MEETING = 'scheduled_follow_up_meeting';
24
-    const SCHEDULED_LUNCH = 'scheduled_lunch';
25
-    const SCHEDULED_PRODUCT_DEMO = 'scheduled_product_demo';
26
-    const SCHEDULED_CLINICAL_DEMO = 'scheduled_clinical_demo';
27
-    const NO_OPPORTUNITY = 'no_opportunity';
7
+	const PICKUP = 'pickup';
8
+	const DROPOFF = 'dropoff';
9
+	const NOANSWER = 'noanswer';
10
+	const NOTFOUND = 'notfound';
11
+	const NOTPAID = 'notpaid';
12
+	const PAID = 'paid';
13
+	const WRONGDELIVERY = 'wrongdelivery';
14
+	const WRONGADDRESSRECIPIENT = 'wrongaddressrecipient';
15
+	const NOTPRESENT = 'notpresent';
16
+	const PARTS_MISSING = 'parts_missing';
17
+	const SERVICE_RENDERED = 'service_rendered';
18
+	const FOLLOW_UP = 'follow_up';
19
+	const LEFT_INFORMATION = 'left_information';
20
+	const SPOKE_WITH_DECISION_MAKER = 'spoke_with_decision_maker';
21
+	const SPOKE_WITH_DECISION_INFLUENCER = 'spoke_with_decision_influencer';
22
+	const COMPETITIVE_ACCOUNT = 'competitive_account';
23
+	const SCHEDULED_FOLLOW_UP_MEETING = 'scheduled_follow_up_meeting';
24
+	const SCHEDULED_LUNCH = 'scheduled_lunch';
25
+	const SCHEDULED_PRODUCT_DEMO = 'scheduled_product_demo';
26
+	const SCHEDULED_CLINICAL_DEMO = 'scheduled_clinical_demo';
27
+	const NO_OPPORTUNITY = 'no_opportunity';
28 28
 }
Please login to merge, or discard this patch.
src/Route4Me/Enum/OptimizationStates.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 block discarded – undo
6 6
 
7 7
 class OptimizationStates
8 8
 {
9
-    const NEW = 0;
10
-    const INITIAL = 1;
11
-    const MATRIX_PROCESSING = 2;
12
-    const OPTIMIZING = 3;
13
-    const OPTIMIZED = 4;
14
-    const ERROR = 5;
15
-    const COMPUTING_DIRECTIONS = 6;
16
-    const IN_QUEUE = 7;
9
+	const NEW = 0;
10
+	const INITIAL = 1;
11
+	const MATRIX_PROCESSING = 2;
12
+	const OPTIMIZING = 3;
13
+	const OPTIMIZED = 4;
14
+	const ERROR = 5;
15
+	const COMPUTING_DIRECTIONS = 6;
16
+	const IN_QUEUE = 7;
17 17
 
18
-    public static function getName(int $state) : string
19
-    {
20
-        $refl = new ReflectionClass(__CLASS__);
21
-        foreach($refl->getConstants() AS $key => $val)
22
-        {
23
-            if($val == $state) return $key;
24
-        }
25
-        return 'UNKNOWN';
26
-    }
18
+	public static function getName(int $state) : string
19
+	{
20
+		$refl = new ReflectionClass(__CLASS__);
21
+		foreach($refl->getConstants() AS $key => $val)
22
+		{
23
+			if($val == $state) return $key;
24
+		}
25
+		return 'UNKNOWN';
26
+	}
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public static function getName(int $state) : string
19 19
     {
20 20
         $refl = new ReflectionClass(__CLASS__);
21
-        foreach($refl->getConstants() AS $key => $val)
21
+        foreach ($refl->getConstants() AS $key => $val)
22 22
         {
23
-            if($val == $state) return $key;
23
+            if ($val==$state) return $key;
24 24
         }
25 25
         return 'UNKNOWN';
26 26
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@
 block discarded – undo
20 20
         $refl = new ReflectionClass(__CLASS__);
21 21
         foreach($refl->getConstants() AS $key => $val)
22 22
         {
23
-            if($val == $state) return $key;
23
+            if($val == $state) {
24
+            	return $key;
25
+            }
24 26
         }
25 27
         return 'UNKNOWN';
26 28
     }
Please login to merge, or discard this patch.
src/Route4Me/V5/Enum/TelematicsVendorsTypes.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
  */
8 8
 class TelematicsVendorsTypes 
9 9
 {
10
-    const TOMTOM = 'tomtom';
10
+	const TOMTOM = 'tomtom';
11 11
     
12
-    const TELETRAC = 'teletrac';
12
+	const TELETRAC = 'teletrac';
13 13
     
14
-    const AZUGA = 'azuga';
14
+	const AZUGA = 'azuga';
15 15
     
16
-    const GEOTAB = 'geotab';
16
+	const GEOTAB = 'geotab';
17 17
     
18
-    const SILENT_PASSENGER = 'silentpassenger';
18
+	const SILENT_PASSENGER = 'silentpassenger';
19 19
     
20
-    const NEW_TELETRAC = 'new_teletrac';
20
+	const NEW_TELETRAC = 'new_teletrac';
21 21
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/Enum/AlgorithmType.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 
5 5
 class AlgorithmType
6 6
 {
7
-    const STATE_NEW = 0;
8
-    const TSP = 1;
9
-    const VRP = 2;
10
-    const CVRP_TW_SD = 3;
11
-    const CVRP_TW_MD = 4;
12
-    const TSP_TW = 5;
13
-    const TSP_TW_CR = 6;
14
-    const OPTIMIZATION_STATE_IN_QUEUE = 7;
15
-    const ADVANCED_CVRP_TW = 9;
16
-    const ALG_NONE = 100;
17
-    const ALG_LEGACY_DISTRIBUTED = 101;
7
+	const STATE_NEW = 0;
8
+	const TSP = 1;
9
+	const VRP = 2;
10
+	const CVRP_TW_SD = 3;
11
+	const CVRP_TW_MD = 4;
12
+	const TSP_TW = 5;
13
+	const TSP_TW_CR = 6;
14
+	const OPTIMIZATION_STATE_IN_QUEUE = 7;
15
+	const ADVANCED_CVRP_TW = 9;
16
+	const ALG_NONE = 100;
17
+	const ALG_LEGACY_DISTRIBUTED = 101;
18 18
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/Enum/Metric.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class Metric
6 6
 {
7
-    const EUCLIDEAN = 1; //measures point to point distance as a straight line
8
-    const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
9
-    const GEODESIC = 3; //measures point to point distance approximating curvature of the earth
10
-    const MATRIX = 4; //measures point to point distance by traversing the actual road network
11
-    const EXACT_2D = 5; //measures point to point distance using 2d rectilinear distance
7
+	const EUCLIDEAN = 1; //measures point to point distance as a straight line
8
+	const MANHATTAN = 2; //measures point to point distance as taxicab geometry line
9
+	const GEODESIC = 3; //measures point to point distance approximating curvature of the earth
10
+	const MATRIX = 4; //measures point to point distance by traversing the actual road network
11
+	const EXACT_2D = 5; //measures point to point distance using 2d rectilinear distance
12 12
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/Enum/DeviceType.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 class DeviceType
6 6
 {
7
-    const WEB = 'web';
8
-    const IPHONE = 'iphone';
9
-    const IPAD = 'ipad';
10
-    const ANDROID_PHONE = 'android_phone';
11
-    const ANDROID_TABLET = 'android_tablet';
7
+	const WEB = 'web';
8
+	const IPHONE = 'iphone';
9
+	const IPAD = 'ipad';
10
+	const ANDROID_PHONE = 'android_phone';
11
+	const ANDROID_TABLET = 'android_tablet';
12 12
 }
Please login to merge, or discard this patch.