|
public function getLoadAttributesSelectGroups($selects) |
|
{ |
|
$mainGroup = []; |
|
foreach ($selects as $selectGroup) { |
|
$mainGroup = array_merge($mainGroup, $selectGroup); |
|
} |
|
return [$mainGroup]; |
|
} |
Can be simplified to array_values(array_merge($selects))
It is not only simplier but much faster too.