| @@ -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 | */ | 
| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | /** | 
| 37 | 37 | * Creates a new document. | 
| 38 | 38 | * | 
| 39 | - * @param int|string $id OPTIONAL $id Id is create if empty | |
| 39 | + * @param string $id OPTIONAL $id Id is create if empty | |
| 40 | 40 | * @param array|string $data OPTIONAL Data array | 
| 41 | 41 | * @param string $type OPTIONAL Type name | 
| 42 | 42 | * @param string $index OPTIONAL Index name | 
| @@ -210,7 +210,7 @@ discard block | ||
| 210 | 210 | * | 
| 211 | 211 | * @param array $args OPTIONAL Additional arguments | 
| 212 | 212 | * | 
| 213 | - * @return array Server response | |
| 213 | + * @return Response Server response | |
| 214 | 214 | * | 
| 215 | 215 | * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-optimize.html | 
| 216 | 216 | */ | 
| @@ -237,14 +237,14 @@ discard block | ||
| 237 | 237 | * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html | 
| 238 | 238 | * | 
| 239 | 239 | * @param array $args OPTIONAL Arguments to use | 
| 240 | - * @param bool|array $options OPTIONAL | |
| 240 | + * @param boolean $options OPTIONAL | |
| 241 | 241 | * bool=> Deletes index first if already exists (default = false). | 
| 242 | 242 | * array => Associative array of options (option=>value) | 
| 243 | 243 | * | 
| 244 | 244 | * @throws \Elastica\Exception\InvalidException | 
| 245 | 245 | * @throws \Elastica\Exception\ResponseException | 
| 246 | 246 | * | 
| 247 | - * @return array Server response | |
| 247 | + * @return Response Server response | |
| 248 | 248 | */ | 
| 249 | 249 | public function create(array $args = array(), $options = null) | 
| 250 | 250 |      { | 
| @@ -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 |      { | 
| @@ -196,7 +196,7 @@ | ||
| 196 | 196 | * | 
| 197 | 197 | * @param string $key The field on which to filter | 
| 198 | 198 | * @param array|string $location Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2] | 
| 199 | - * @param int|string $precision length of geohash prefix or distance (3, or "50m") | |
| 199 | + * @param integer $precision length of geohash prefix or distance (3, or "50m") | |
| 200 | 200 | * @param bool $neighbors If true, filters cells next to the given cell. | 
| 201 | 201 | * | 
| 202 | 202 | * @return GeohashCell | 
| @@ -322,7 +322,7 @@ discard block | ||
| 322 | 322 | } | 
| 323 | 323 | |
| 324 | 324 | /** | 
| 325 | - * @param array|string $fields | |
| 325 | + * @param string $fields | |
| 326 | 326 | * | 
| 327 | 327 | * @return $this | 
| 328 | 328 | */ | 
| @@ -456,7 +456,7 @@ discard block | ||
| 456 | 456 | } | 
| 457 | 457 | |
| 458 | 458 | /** | 
| 459 | - * @return string | |
| 459 | + * @return boolean | |
| 460 | 460 | */ | 
| 461 | 461 | public function hasTimeout() | 
| 462 | 462 |      { | 
| @@ -482,7 +482,7 @@ discard block | ||
| 482 | 482 | } | 
| 483 | 483 | |
| 484 | 484 | /** | 
| 485 | - * @return string | |
| 485 | + * @return boolean | |
| 486 | 486 | */ | 
| 487 | 487 | public function hasConsistency() | 
| 488 | 488 |      { | 
| @@ -545,7 +545,7 @@ discard block | ||
| 545 | 545 | } | 
| 546 | 546 | |
| 547 | 547 | /** | 
| 548 | - * @param array $fields if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing | |
| 548 | + * @param string[] $fields if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing | |
| 549 | 549 | * @param bool $withUnderscore should option keys contain underscore prefix | 
| 550 | 550 | * | 
| 551 | 551 | * @return array | 
| @@ -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) | 
| @@ -285,7 +285,7 @@ | ||
| 285 | 285 | * | 
| 286 | 286 | * @throws Exception\InvalidException If offset doesn't exist | 
| 287 | 287 | * | 
| 288 | - * @return Result|null | |
| 288 | + * @return Result | |
| 289 | 289 | */ | 
| 290 | 290 | public function offsetGet($offset) | 
| 291 | 291 |      { |