Completed
Push — devel ( d3ae64...2aa639 )
by Alexey
02:44
created
src/Bardex/Elastic/SearchQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function setIndex($index)
41 41
     {
42
-        $this->params['index'] = (string)$index;
42
+        $this->params['index'] = (string) $index;
43 43
         return $this;
44 44
     }
45 45
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function setType($type)
52 52
     {
53
-        $this->params['type'] = (string)$type;
53
+        $this->params['type'] = (string) $type;
54 54
         return $this;
55 55
     }
56 56
 
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function addOrderBy($field, $order = 'asc')
195 195
     {
196
-        $field = (string)$field;
197
-        $order = (string)$order;
196
+        $field = (string) $field;
197
+        $order = (string) $order;
198 198
         if (!isset($this->params['body']['sort'])) {
199 199
             $this->params['body']['sort'] = [];
200 200
         }
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
      */
212 212
     public function limit($limit, $offset = 0)
213 213
     {
214
-        $this->params['body']['size'] = (int)$limit;
215
-        $this->params['body']['from'] = (int)$offset;
214
+        $this->params['body']['size'] = (int) $limit;
215
+        $this->params['body']['from'] = (int) $offset;
216 216
         return $this;
217 217
     }
218 218
 
Please login to merge, or discard this patch.
src/Bardex/Elastic/SearchResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function __construct($results, $totalFound)
23 23
     {
24
-        $results = (array)$results;
24
+        $results = (array) $results;
25 25
         $this->results = $results;
26 26
         $this->totalFound = $totalFound;
27 27
     }
Please login to merge, or discard this patch.