@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * Creates the Elasticsearch index. |
89 | 89 | * |
90 | - * @return array |
|
90 | + * @return boolean |
|
91 | 91 | */ |
92 | 92 | public function createIndex() |
93 | 93 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | public function createIndex() |
93 | 93 | { |
94 | 94 | $this->client->indices()->create($this->getParams()); |
95 | - return $this->putMapping();; |
|
95 | + return $this->putMapping(); ; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | 'categories' => $faq['category_id'] |
178 | 178 | ]; |
179 | 179 | |
180 | - if ($i % 1000 == 0) { |
|
180 | + if ($i%1000 == 0) { |
|
181 | 181 | $responses = $this->client->bulk($params); |
182 | 182 | $params = ['body' => []]; |
183 | 183 | unset($responses); |