@@ -295,12 +295,12 @@ |
||
| 295 | 295 | |
| 296 | 296 | foreach ($this->criteria as $criterion) { |
| 297 | 297 | $results = array_filter( |
| 298 | - (isset($results)) ? $results : $array, function ($element) use ($criterion) { |
|
| 298 | + (isset($results)) ? $results : $array, function($element) use ($criterion) { |
|
| 299 | 299 | return CriterionFilter::filter($criterion, $element); |
| 300 | 300 | } |
| 301 | 301 | ); |
| 302 | 302 | |
| 303 | - $results = array_map(function ($result) use ($criterion) { |
|
| 303 | + $results = array_map(function($result) use ($criterion) { |
|
| 304 | 304 | $key = explode(Constants::ALIAS_DELIMITER, $criterion['key']); |
| 305 | 305 | if (count($key) > 1) { |
| 306 | 306 | $oldkey = explode(Constants::ARRAY_SEPARATOR, $key[0]); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | private static function getValueFromKeysArray($keysArray, $arrayElement) |
| 58 | 58 | { |
| 59 | - if (count($keysArray)>1) { |
|
| 59 | + if (count($keysArray) > 1) { |
|
| 60 | 60 | $key = array_shift($keysArray); |
| 61 | 61 | |
| 62 | 62 | return self::getValueFromKeysArray($keysArray, ArrayConverter::convertToPlainArray($arrayElement[$key])); |