@@ -191,7 +191,7 @@ |
||
191 | 191 | 'properties' => [ |
192 | 192 | 'titulo' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0], |
193 | 193 | 'contenido' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0], |
194 | - 'testall' => ['type' => 'text', 'boost' => 1.0], |
|
194 | + 'testall' => ['type' => 'text', 'boost' => 1.0], |
|
195 | 195 | ], |
196 | 196 | ], |
197 | 197 | ]); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * |
255 | 255 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
256 | 256 | * |
257 | - * @param array|\Elastica\Document[] $docs Array of Elastica\Document |
|
257 | + * @param Document[] $docs Array of Elastica\Document |
|
258 | 258 | * |
259 | 259 | * @throws InvalidException If docs is empty |
260 | 260 | */ |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | /** |
377 | 377 | * Bulk deletes documents. |
378 | 378 | * |
379 | - * @param array|\Elastica\Document[] $docs |
|
379 | + * @param Document[] $docs |
|
380 | 380 | * |
381 | 381 | * @throws InvalidException |
382 | 382 | */ |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | } |
474 | 474 | |
475 | 475 | /** |
476 | - * @param array|\Elastica\Connection[] $connections |
|
476 | + * @param Connection[] $connections |
|
477 | 477 | * |
478 | 478 | * @return $this |
479 | 479 | */ |
@@ -76,7 +76,7 @@ |
||
76 | 76 | /** |
77 | 77 | * Get the value of the given field. |
78 | 78 | * |
79 | - * @param mixed $key |
|
79 | + * @param string $key |
|
80 | 80 | * |
81 | 81 | * @throws InvalidException If the given field does not exist |
82 | 82 | * |
@@ -154,7 +154,7 @@ |
||
154 | 154 | /** |
155 | 155 | * Update entries in the db based on a query. |
156 | 156 | * |
157 | - * @param array|Query|string $query Query object or array |
|
157 | + * @param string $query Query object or array |
|
158 | 158 | * @param AbstractScript $script Script |
159 | 159 | * @param array $options Optional params |
160 | 160 | * |
@@ -399,6 +399,9 @@ |
||
399 | 399 | return $index; |
400 | 400 | } |
401 | 401 | |
402 | + /** |
|
403 | + * @param TopHits $innerAggr |
|
404 | + */ |
|
402 | 405 | protected function getOuterAggregationResult($innerAggr) |
403 | 406 | { |
404 | 407 | $outerAggr = new Terms('top_tags'); |
@@ -139,6 +139,9 @@ |
||
139 | 139 | $client->request('_status', 'GET'); |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $url |
|
144 | + */ |
|
142 | 145 | protected function checkProxy($url): void |
143 | 146 | { |
144 | 147 | $url = \parse_url($url); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $this->assertEquals('AnonCoin', $index->getDocument(1)->get('name')); |
173 | 173 | $this->assertEquals('iXcoin', $index->getDocument(2)->get('name')); |
174 | 174 | |
175 | - $ixCoin->setIndex(null); // Make sure the index gets set properly if missing |
|
175 | + $ixCoin->setIndex(null); // Make sure the index gets set properly if missing |
|
176 | 176 | $index->deleteDocuments([$anonCoin, $ixCoin]); |
177 | 177 | |
178 | 178 | $this->expectException(NotFoundException::class); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | $count = 0; |
386 | 386 | |
387 | 387 | // Callback function which verifies that disabled connection objects are returned |
388 | - $callback = function (Connection $connection, \Exception $exception, Client $client) use (&$count): void { |
|
388 | + $callback = function(Connection $connection, \Exception $exception, Client $client) use (&$count): void { |
|
389 | 389 | $this->assertInstanceOf(Connection::class, $connection); |
390 | 390 | $this->assertInstanceOf(ConnectionException::class, $exception); |
391 | 391 | $this->assertInstanceOf(Client::class, $client); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | - * @param array|string $fields |
|
191 | + * @param string $fields |
|
192 | 192 | * |
193 | 193 | * @return $this |
194 | 194 | */ |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | } |
394 | 394 | |
395 | 395 | /** |
396 | - * @param array $fields if empty array all options will be returned |
|
396 | + * @param string[] $fields if empty array all options will be returned |
|
397 | 397 | * |
398 | 398 | * @return array |
399 | 399 | */ |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * Create new info object for node. |
54 | 54 | * |
55 | 55 | * @param BaseNode $node Node object |
56 | - * @param array $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http |
|
56 | + * @param string[] $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http |
|
57 | 57 | */ |
58 | 58 | public function __construct(BaseNode $node, array $params = []) |
59 | 59 | { |