@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -21,7 +21,7 @@ |
||
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 | } |