Completed
Push — master ( 87df9b...1c3dae )
by Mauro
04:13
created
src/QueryBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -264,18 +264,18 @@
 block discarded – undo
264 264
 
265 265
         foreach ($this->criteria as $criterion) {
266 266
             $results = array_filter(
267
-                (isset($results)) ? $results : $array, function ($element) use ($criterion) {
267
+                (isset($results)) ? $results : $array, function($element) use ($criterion) {
268 268
                     return CriterionFilter::filter($criterion, $element);
269 269
                 }
270 270
             );
271 271
 
272 272
             $results = array_map(function($result) use ($criterion) {
273 273
                 $key = explode(Constants::ALIAS_DELIMITER, $criterion['key']);
274
-                if(count($key) > 1){
274
+                if (count($key) > 1) {
275 275
                     $oldkey = explode(Constants::ARRAY_SEPARATOR, $key[0]);
276 276
                     $newkey = $key[1];
277 277
 
278
-                    $result = (array)($result);
278
+                    $result = (array) ($result);
279 279
                     $result[$newkey] = $result[$oldkey[0]];
280 280
                     unset($result[$oldkey[0]]);
281 281
                 }
Please login to merge, or discard this patch.