Completed
Push — devel ( b12ffb...aaf4bd )
by Alexey
02:13
created
src/Bardex/Elastic/Where.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     }
116 116
 
117 117
 
118
-    protected function range($params, $dateFormat=null)
118
+    protected function range($params, $dateFormat = null)
119 119
     {
120 120
         if ($dateFormat) $params['format'] = $dateFormat;
121 121
         $this->query->addFilter('range', [$this->field => $params]);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,9 @@
 block discarded – undo
117 117
 
118 118
     protected function range($params, $dateFormat=null)
119 119
     {
120
-        if ($dateFormat) $params['format'] = $dateFormat;
120
+        if ($dateFormat) {
121
+            $params['format'] = $dateFormat;
122
+        }
121 123
         $this->query->addFilter('range', [$this->field => $params]);
122 124
         return $this->query;
123 125
     }
Please login to merge, or discard this patch.