@@ -127,7 +127,7 @@ |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @param string|\Elastica\Index $index |
|
| 130 | + * @param string $index |
|
| 131 | 131 | * |
| 132 | 132 | * @return $this |
| 133 | 133 | */ |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * @link http://php.net/manual/en/function.json-decode.php |
| 15 | 15 | * @link http://php.net/manual/en/function.json-last-error.php |
| 16 | 16 | * |
| 17 | - * @param string $json JSON string to parse |
|
| 18 | 17 | * |
| 19 | 18 | * @return array PHP array representation of JSON string |
| 20 | 19 | */ |
@@ -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 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $types = is_array($types) ? $types : array($types); |
| 134 | 134 | |
| 135 | 135 | $types = array_map( |
| 136 | - function ($type) { |
|
| 136 | + function($type) { |
|
| 137 | 137 | if ($type instanceof Type) { |
| 138 | 138 | $type = $type->getName(); |
| 139 | 139 | } |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Elastica\Index; |
| 6 | 6 | use Elastica\Query\MatchAll; |
| 7 | 7 | use Elastica\ScanAndScroll; |
| 8 | -use Elastica\Search; |
|
| 9 | 8 | use Elastica\Type; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -31,7 +31,6 @@ discard block |
||
| 31 | 31 | * @param array $ids Document ids |
| 32 | 32 | * |
| 33 | 33 | * @deprecated Option "ids" deprecated as of ES 2.0.0-beta1 and will be removed in further Elastica releases. Use "like" instead. |
| 34 | - |
|
| 35 | 34 | * @return \Elastica\Query\MoreLikeThis Current object |
| 36 | 35 | */ |
| 37 | 36 | public function setIds(array $ids) |
@@ -57,7 +56,6 @@ discard block |
||
| 57 | 56 | * @param string $likeText |
| 58 | 57 | * |
| 59 | 58 | * @deprecated Option "like_text" deprecated as of ES 2.0.0-beta1 and will be removed at further Elastica releases. Use "like" instead. |
| 60 | - |
|
| 61 | 59 | * @return $this |
| 62 | 60 | */ |
| 63 | 61 | public function setLikeText($likeText) |
@@ -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 | */ |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | - * @return array|\Elastica\Search[] |
|
| 114 | + * @return BaseSearch[] |
|
| 115 | 115 | */ |
| 116 | 116 | public function getSearches() |
| 117 | 117 | { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
| 326 | - * @param array|string $fields |
|
| 326 | + * @param string $fields |
|
| 327 | 327 | * |
| 328 | 328 | * @return $this |
| 329 | 329 | */ |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | } |
| 547 | 547 | |
| 548 | 548 | /** |
| 549 | - * @param array $fields if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing |
|
| 549 | + * @param string[] $fields if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing |
|
| 550 | 550 | * @param bool $withUnderscore should option keys contain underscore prefix |
| 551 | 551 | * |
| 552 | 552 | * @return array |