Rearrange order of services in poupup
This commit is contained in:
@@ -456,15 +456,15 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
|
|||||||
protected function combineServices(array $skiPass, array $servicesBoard, array $servicesIncluded)
|
protected function combineServices(array $skiPass, array $servicesBoard, array $servicesIncluded)
|
||||||
{
|
{
|
||||||
$combinedServices = [];
|
$combinedServices = [];
|
||||||
|
if ($servicesIncluded) {
|
||||||
|
array_push($combinedServices, ...$servicesIncluded);
|
||||||
|
}
|
||||||
if ($skiPass) {
|
if ($skiPass) {
|
||||||
array_push($combinedServices, ...$skiPass);
|
array_push($combinedServices, ...$skiPass);
|
||||||
}
|
}
|
||||||
if ($servicesBoard) {
|
if ($servicesBoard) {
|
||||||
array_push($combinedServices, ...$servicesBoard);
|
array_push($combinedServices, ...$servicesBoard);
|
||||||
}
|
}
|
||||||
if ($servicesIncluded) {
|
|
||||||
array_push($combinedServices, ...$servicesIncluded);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $combinedServices;
|
return $combinedServices;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user