Completed
Pull Request — master (#1639)
by Federico
01:40
created
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/Aggregation/Children.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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
      */
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
@@ -435,7 +435,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
lib/Elastica/Bulk/Action.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
170 170
     }
171 171
 
172 172
     /**
173
-     * @param string|int $routing
173
+     * @param string|boolean $routing
174 174
      *
175 175
      * @return $this
176 176
      */
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Elastica/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
281 281
      *
282 282
      * @param array      $args    OPTIONAL Arguments to use
283
-     * @param bool|array $options OPTIONAL
283
+     * @param boolean $options OPTIONAL
284 284
      *                            bool=> Deletes index first if already exists (default = false).
285 285
      *                            array => Associative array of options (option=>value)
286 286
      *
Please login to merge, or discard this patch.
lib/Elastica/JSON.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
      * @see http://php.net/manual/en/function.json-decode.php
16 16
      * @see http://php.net/manual/en/function.json-last-error.php
17 17
      *
18
-     * @param string $args,... JSON string to parse
19 18
      *
20 19
      * @throws JSONParseException
21 20
      *
21
+     * @param string $args
22 22
      * @return array PHP array representation of JSON string
23 23
      */
24 24
     public static function parse($args/* inherit from json_decode */)
@@ -49,7 +49,6 @@  discard block
 block discarded – undo
49 49
      * @see http://php.net/manual/en/function.json-encode.php
50 50
      * @see http://php.net/manual/en/function.json-last-error.php
51 51
      *
52
-     * @param mixed $args,... Target to stringify
53 52
      *
54 53
      * @throws JSONParseException
55 54
      *
Please login to merge, or discard this patch.
lib/Elastica/Aggregation/ParentAggregation.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
     /**
18 18
      * Set the child type for this aggregation.
19 19
      *
20
-     * @param string $field the child type that should be selected
21 20
      *
22 21
      * @return $this
23 22
      */
Please login to merge, or discard this patch.
lib/Elastica/Document.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
      *
39 39
      * @param int|string   $id    OPTIONAL $id Id is create if empty
40 40
      * @param array|string $data  OPTIONAL Data array
41
-     * @param Type|string  $type  OPTIONAL Type name
42
-     * @param Index|string $index OPTIONAL Index name
41
+     * @param string  $type  OPTIONAL Type name
42
+     * @param Index $index OPTIONAL Index name
43 43
      */
44 44
     public function __construct($id = '', $data = [], $type = '', $index = '')
45 45
     {
Please login to merge, or discard this patch.