@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function removeElement($key) |
113 | 113 | { |
114 | - if(!isset($this->array[$key])){ |
|
114 | + if (!isset($this->array[$key])) { |
|
115 | 115 | throw new NotExistingElementException(sprintf('Element with key %s does not exists.', $key)); |
116 | 116 | } |
117 | 117 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | */ |
241 | 241 | public function getResults() |
242 | 242 | { |
243 | - if(empty($this->array)){ |
|
243 | + if (empty($this->array)) { |
|
244 | 244 | return []; |
245 | 245 | } |
246 | 246 | |
@@ -330,12 +330,12 @@ discard block |
||
330 | 330 | |
331 | 331 | foreach ($this->criteria as $criterion) { |
332 | 332 | $results = array_filter( |
333 | - (isset($results)) ? $results : $array, function ($element) use ($criterion) { |
|
333 | + (isset($results)) ? $results : $array, function($element) use ($criterion) { |
|
334 | 334 | return CriterionFilter::filter($criterion, $element); |
335 | 335 | } |
336 | 336 | ); |
337 | 337 | |
338 | - $results = array_map(function ($result) use ($criterion) { |
|
338 | + $results = array_map(function($result) use ($criterion) { |
|
339 | 339 | $key = explode(Constants::ALIAS_DELIMITER, $criterion['key']); |
340 | 340 | if (count($key) > 1) { |
341 | 341 | $oldkey = explode(Constants::ARRAY_SEPARATOR, $key[0]); |