@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * node is running on |
| 62 | 62 | * Example 2: get('os', 'mem') returns an array with all mem infos |
| 63 | 63 | * |
| 64 | - * @return mixed Data array entry or null if not found |
|
| 64 | + * @return string Data array entry or null if not found |
|
| 65 | 65 | */ |
| 66 | 66 | public function get() |
| 67 | 67 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $signer = new SignatureV4('es', $region); |
| 44 | 44 | $credProvider = $this->getCredentialProvider(); |
| 45 | 45 | |
| 46 | - return Middleware::mapRequest(function (RequestInterface $req) use ( |
|
| 46 | + return Middleware::mapRequest(function(RequestInterface $req) use ( |
|
| 47 | 47 | $signer, |
| 48 | 48 | $credProvider |
| 49 | 49 | ) { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Set the type for this aggregation. |
| 14 | 14 | * |
| 15 | - * @param string $field the child type the buckets in the parent space should be mapped to |
|
| 16 | 15 | * |
| 17 | 16 | * @return $this |
| 18 | 17 | */ |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | /** |
| 436 | 436 | * Sets post_filter argument for the query. The filter is applied after the query has executed. |
| 437 | 437 | * |
| 438 | - * @param array|\Elastica\Query\AbstractQuery $filter |
|
| 438 | + * @param AbstractQuery $filter |
|
| 439 | 439 | * |
| 440 | 440 | * @return $this |
| 441 | 441 | * |
@@ -41,7 +41,6 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Suggest prefix must be set either globally or per suggestion. |
| 43 | 43 | * |
| 44 | - * @param string $text |
|
| 45 | 44 | * |
| 46 | 45 | * @return $this |
| 47 | 46 | */ |
@@ -53,7 +52,6 @@ discard block |
||
| 53 | 52 | /** |
| 54 | 53 | * Suggest regex must be set either globally or per suggestion. |
| 55 | 54 | * |
| 56 | - * @param string $text |
|
| 57 | 55 | * |
| 58 | 56 | * @return $this |
| 59 | 57 | */ |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Creates a new document. |
| 37 | 37 | * |
| 38 | - * @param int|string $id OPTIONAL $id Id is create if empty |
|
| 38 | + * @param string $id OPTIONAL $id Id is create if empty |
|
| 39 | 39 | * @param array|string $data OPTIONAL Data array |
| 40 | - * @param Type|string $type OPTIONAL Type name |
|
| 41 | - * @param Index|string $index OPTIONAL Index name |
|
| 40 | + * @param string $type OPTIONAL Type name |
|
| 41 | + * @param Index $index OPTIONAL Index name |
|
| 42 | 42 | */ |
| 43 | 43 | public function __construct($id = '', $data = [], $type = '', $index = '') |
| 44 | 44 | { |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * - jaro_winkler |
| 138 | 138 | * - ngram |
| 139 | 139 | * |
| 140 | - * @param string $distanceAlgrorithm |
|
| 140 | + * @param string $distanceAlgorithm |
|
| 141 | 141 | * |
| 142 | 142 | * @return $this |
| 143 | 143 | */ |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @param string|Index $index |
|
| 130 | + * @param string $index |
|
| 131 | 131 | * |
| 132 | 132 | * @return $this |
| 133 | 133 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | - * @param string|int $routing |
|
| 173 | + * @param string|boolean $routing |
|
| 174 | 174 | * |
| 175 | 175 | * @return $this |
| 176 | 176 | */ |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * Sets / overwrites a specific config value. |
| 214 | 214 | * |
| 215 | 215 | * @param string $key Key to set |
| 216 | - * @param mixed $value Value |
|
| 216 | + * @param string $value Value |
|
| 217 | 217 | * |
| 218 | 218 | * @return $this |
| 219 | 219 | */ |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
| 226 | - * @param array|string $keys config key or path of config keys |
|
| 227 | - * @param mixed $default default value will be returned if key was not found |
|
| 226 | + * @param string[] $keys config key or path of config keys |
|
| 227 | + * @param boolean $default default value will be returned if key was not found |
|
| 228 | 228 | * |
| 229 | 229 | * @return mixed |
| 230 | 230 | */ |
@@ -598,8 +598,8 @@ discard block |
||
| 598 | 598 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
| 599 | 599 | * |
| 600 | 600 | * @param array $ids Document ids |
| 601 | - * @param string|\Elastica\Index $index Index name |
|
| 602 | - * @param string|\Elastica\Type $type Type of documents |
|
| 601 | + * @param Index $index Index name |
|
| 602 | + * @param Type $type Type of documents |
|
| 603 | 603 | * @param string|bool $routing Optional routing key for all ids |
| 604 | 604 | * |
| 605 | 605 | * @throws \Elastica\Exception\InvalidException |