Completed
Push — master ( dbdc32...0d10e3 )
by Nicolas
02:23
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/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/Transport/AwsAuthV4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
         ) {
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/Multi/Search.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
-     * @return array|\Elastica\Search[]
114
+     * @return BaseSearch[]
115 115
      */
116 116
     public function getSearches()
117 117
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @const string[] valid header options
20 20
      */
21 21
     private static $HEADER_OPTIONS = ['index', 'types', 'search_type',
22
-                                      'routing', 'preference', ];
22
+                                        'routing', 'preference', ];
23 23
     /**
24 24
      * @var MultiBuilderInterface
25 25
      */
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
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * Sets / overwrites a specific config value.
183 183
      *
184 184
      * @param string $key   Key to set
185
-     * @param mixed  $value Value
185
+     * @param string  $value Value
186 186
      *
187 187
      * @return $this
188 188
      */
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
     }
193 193
 
194 194
     /**
195
-     * @param array|string $keys    config key or path of config keys
196
-     * @param mixed        $default default value will be returned if key was not found
195
+     * @param string[] $keys    config key or path of config keys
196
+     * @param boolean        $default default value will be returned if key was not found
197 197
      *
198 198
      * @return mixed
199 199
      */
@@ -538,8 +538,8 @@  discard block
 block discarded – undo
538 538
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
539 539
      *
540 540
      * @param array                  $ids     Document ids
541
-     * @param string|\Elastica\Index $index   Index name
542
-     * @param string|\Elastica\Type  $type    Type of documents
541
+     * @param Index $index   Index name
542
+     * @param Type  $type    Type of documents
543 543
      * @param string|bool            $routing Optional routing key for all ids
544 544
      *
545 545
      * @throws \Elastica\Exception\InvalidException
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/JSON.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 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 $args,... JSON string to parse
18 17
      *
19 18
      * @throws JSONParseException
20 19
      *
20
+     * @param string $args
21 21
      * @return array PHP array representation of JSON string
22 22
      */
23 23
     public static function parse($args/* inherit from json_decode */)
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
      * @link http://php.net/manual/en/function.json-encode.php
49 49
      * @link http://php.net/manual/en/function.json-last-error.php
50 50
      *
51
-     * @param mixed $args,... Target to stringify
52 51
      *
53 52
      * @throws JSONParseException
54 53
      *
Please login to merge, or discard this patch.
lib/Elastica/Suggest/AbstractSuggest.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.