@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function removeElement($key) |
110 | 110 | { |
111 | - if(!isset($this->array[$key])){ |
|
111 | + if (!isset($this->array[$key])) { |
|
112 | 112 | throw new NotExistingElementException(sprintf('Element with key %s does not exists.', $key)); |
113 | 113 | } |
114 | 114 | |
@@ -323,12 +323,12 @@ discard block |
||
323 | 323 | |
324 | 324 | foreach ($this->criteria as $criterion) { |
325 | 325 | $results = array_filter( |
326 | - (isset($results)) ? $results : $array, function ($element) use ($criterion) { |
|
326 | + (isset($results)) ? $results : $array, function($element) use ($criterion) { |
|
327 | 327 | return CriterionFilter::filter($criterion, $element); |
328 | 328 | } |
329 | 329 | ); |
330 | 330 | |
331 | - $results = array_map(function ($result) use ($criterion) { |
|
331 | + $results = array_map(function($result) use ($criterion) { |
|
332 | 332 | $key = explode(Constants::ALIAS_DELIMITER, $criterion['key']); |
333 | 333 | if (count($key) > 1) { |
334 | 334 | $oldkey = explode(Constants::ARRAY_SEPARATOR, $key[0]); |