Completed
Branch devel (495af1)
by Alexey
02:06 queued 11s
created
src/Bardex/Elastic/Query.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -393,8 +393,7 @@  discard block
 block discarded – undo
393 393
                 foreach ($hit['fields'] as $field => $data) {
394 394
                     if (count($data) == 1) {
395 395
                         $row[$field] = array_shift($data);
396
-                    }
397
-                    else {
396
+                    } else {
398 397
                         $row[$field] = $data;
399 398
                     }
400 399
                 }
@@ -416,8 +415,7 @@  discard block
 block discarded – undo
416 415
         $results = $this->fetchAll();
417 416
         if (count($results)) {
418 417
             return array_shift($results);
419
-        }
420
-        else {
418
+        } else {
421 419
             return null;
422 420
         }
423 421
     }
Please login to merge, or discard this patch.