Completed
Pull Request — master (#1023)
by Jonathan
07:29
created
lib/Elastica/Bulk/Action.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
-     * @param string|\Elastica\Index $index
130
+     * @param string $index
131 131
      *
132 132
      * @return $this
133 133
      */
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Sets / overwrites a specific config value.
187 187
      *
188 188
      * @param string $key   Key to set
189
-     * @param mixed  $value Value
189
+     * @param string  $value Value
190 190
      *
191 191
      * @return $this
192 192
      */
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
     /**
199
-     * @param array|string $keys    config key or path of config keys
200
-     * @param mixed        $default default value will be returned if key was not found
199
+     * @param string[] $keys    config key or path of config keys
200
+     * @param boolean        $default default value will be returned if key was not found
201 201
      *
202 202
      * @return mixed
203 203
      */
@@ -542,8 +542,8 @@  discard block
 block discarded – undo
542 542
      * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
543 543
      *
544 544
      * @param array                  $ids     Document ids
545
-     * @param string|\Elastica\Index $index   Index name
546
-     * @param string|\Elastica\Type  $type    Type of documents
545
+     * @param Index $index   Index name
546
+     * @param Type  $type    Type of documents
547 547
      * @param string|bool            $routing Optional routing key for all ids
548 548
      *
549 549
      * @throws \Elastica\Exception\InvalidException
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
     /**
679 679
      * logging.
680 680
      *
681
-     * @param string|\Elastica\Request $context
681
+     * @param Request $context
682 682
      *
683 683
      * @throws Exception\RuntimeException
684 684
      */
Please login to merge, or discard this patch.
lib/Elastica/Connection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
      *
306 306
      * @throws \Elastica\Exception\InvalidException
307 307
      *
308
-     * @return array|string Config value
308
+     * @return boolean Config value
309 309
      */
310 310
     public function getConfig($key = '')
311 311
     {
Please login to merge, or discard this patch.
lib/Elastica/Document.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Elastica/Index.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Elastica/JSON.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
lib/Elastica/Node/Info.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
lib/Elastica/Query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@
 block discarded – undo
446 446
     /**
447 447
      * Sets post_filter argument for the query. The filter is applied after the query has executed.
448 448
      *
449
-     * @param array|\Elastica\Filter\AbstractFilter $filter
449
+     * @param AbstractFilter $filter
450 450
      *
451 451
      * @return $this
452 452
      *
Please login to merge, or discard this patch.
lib/Elastica/QueryBuilder/DSL/Filter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.