Completed
Push — devel ( ccf8ba...513da0 )
by Alexey
01:58
created
src/Bardex/Elastic/Query.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
      * Для удобства используй готовые методы фильтрации: where(), whereIn(), whereBetween(), whereMatch()
132 132
      * whereLess() и другие методы where*()
133 133
      *
134
-     * @param $type - тип фильтрации (term|terms|match|range)
134
+     * @param string $type - тип фильтрации (term|terms|match|range)
135 135
      * @param $filter - сам фильтр
136 136
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/5.0/query-dsl-terms-query.html
137 137
      * @return $this
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      * Параметры запроса
15 15
      * @var array
16 16
      */
17
-    protected $params=[];
17
+    protected $params = [];
18 18
 
19 19
     /**
20 20
      * сколько всего в индексе ES строк удовлетворяющих параметрам поиска
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function addFilter($type, $filter)
140 140
     {
141
-        if ( !isset($this->params['body']['query']['bool']['must']) ) {
141
+        if (!isset($this->params['body']['query']['bool']['must'])) {
142 142
             $this->params['body']['query']['bool']['must'] = [];
143 143
         }
144 144
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         if ($dateFormat) {
202 202
             $params['format'] = $dateFormat;
203 203
         }
204
-        $this->addFilter('range',[$field => $params]);
204
+        $this->addFilter('range', [$field => $params]);
205 205
         return $this;
206 206
     }
207 207
 
Please login to merge, or discard this patch.