@@ -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); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Set the weight for this aggregation. |
| 52 | 52 | * |
| 53 | - * @param mixed $missing |
|
| 53 | + * @param integer $missing |
|
| 54 | 54 | * |
| 55 | 55 | * @return $this |
| 56 | 56 | */ |
@@ -98,7 +98,6 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Set the value_type for this aggregation. |
| 100 | 100 | * |
| 101 | - * @param string $format |
|
| 102 | 101 | * @param mixed $valueType |
| 103 | 102 | * |
| 104 | 103 | * @return $this |
@@ -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 | { |
@@ -213,6 +213,9 @@ |
||
| 213 | 213 | $this->assertArrayHasKey('acknowledged', $createIndexResponse->getData()); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + /** |
|
| 217 | + * @param string $url |
|
| 218 | + */ |
|
| 216 | 219 | protected function checkProxy($url): void |
| 217 | 220 | { |
| 218 | 221 | $url = \parse_url($url); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | * |
| 199 | 199 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
| 200 | 200 | * |
| 201 | - * @param array|Document[] $docs Array of Elastica\Document |
|
| 201 | + * @param Document[] $docs Array of Elastica\Document |
|
| 202 | 202 | * |
| 203 | 203 | * @throws InvalidException If docs is empty |
| 204 | 204 | */ |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | /** |
| 316 | 316 | * Bulk deletes documents. |
| 317 | 317 | * |
| 318 | - * @param array|Document[] $docs |
|
| 318 | + * @param Document[] $docs |
|
| 319 | 319 | * |
| 320 | 320 | * @throws InvalidException |
| 321 | 321 | */ |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | /** |
| 413 | - * @param array|Connection[] $connections |
|
| 413 | + * @param Connection[] $connections |
|
| 414 | 414 | * |
| 415 | 415 | * @return $this |
| 416 | 416 | */ |
@@ -68,6 +68,9 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | private $builder; |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param BuilderInterface $builder |
|
| 73 | + */ |
|
| 71 | 74 | public function __construct(Client $client, ?BuilderInterface $builder = null) |
| 72 | 75 | { |
| 73 | 76 | $this->_client = $client; |
@@ -99,7 +102,7 @@ discard block |
||
| 99 | 102 | /** |
| 100 | 103 | * Add array of indices at once. |
| 101 | 104 | * |
| 102 | - * @param Index[]|string[] $indices |
|
| 105 | + * @param Index[] $indices |
|
| 103 | 106 | */ |
| 104 | 107 | public function addIndices(array $indices = []): self |
| 105 | 108 | { |