Passed
Push — master ( 941b97...25fd80 )
by Mauro
02:54
created
src/QueryBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.