@@ -59,13 +59,13 @@ discard block |
||
| 59 | 59 | public $weight_metric; |
| 60 | 60 | public $max_weight_per_axle_group_metric; |
| 61 | 61 | |
| 62 | - public function __construct () |
|
| 62 | + public function __construct() |
|
| 63 | 63 | { |
| 64 | 64 | Route4Me::setBaseUrl(Endpoint::WH_BASE_URL); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | public static function fromArray(array $params) { |
| 68 | - $vehicle= new Vehicle(); |
|
| 68 | + $vehicle = new Vehicle(); |
|
| 69 | 69 | foreach ($params as $key => $value) { |
| 70 | 70 | if (property_exists($vehicle, $key)) { |
| 71 | 71 | $vehicle->{$key} = $value; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | return $response; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - public function getRandomVehicleId($page,$perPage) |
|
| 91 | + public function getRandomVehicleId($page, $perPage) |
|
| 92 | 92 | { |
| 93 | 93 | $params = array( |
| 94 | 94 | 'page' => isset($page) ? $page : 1, |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $parameters = RouteParameters::fromArray(array( |
| 33 | 33 | "algorithm_type" => Algorithmtype::CVRP_TW_SD, |
| 34 | 34 | "route_name" => "Multiple Depot, Multiple Driver with 24 Stops, Time Window", |
| 35 | - "route_date" => time() + 24*60*60, |
|
| 35 | + "route_date" => time() + 24 * 60 * 60, |
|
| 36 | 36 | "route_time" => 60 * 60 * 7, |
| 37 | 37 | "distance_unit" => DistanceUnit::MILES, |
| 38 | 38 | "device_type" => DeviceType::WEB, |