Completed
Pull Request — master (#1666)
by Ema
02:02
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/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/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
@@ -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/Bulk.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Elastica\Bulk\Action\AbstractDocument as AbstractDocumentAction;
7 7
 use Elastica\Bulk\Response as BulkResponse;
8 8
 use Elastica\Bulk\ResponseSet;
9
-use Elastica\Exception\Bulk\ResponseException;
10 9
 use Elastica\Exception\Bulk\ResponseException as BulkResponseException;
11 10
 use Elastica\Exception\InvalidException;
12 11
 use Elastica\Script\AbstractScript;
Please login to merge, or discard this patch.
lib/Elastica/Bulk/Action.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @param string|int $routing
157
+     * @param string|boolean $routing
158 158
      *
159 159
      * @return $this
160 160
      */
Please login to merge, or discard this patch.
lib/Elastica/Search.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
     /**
345 345
      * Search in the set indices.
346 346
      *
347
-     * @param mixed     $query
347
+     * @param string     $query
348 348
      * @param int|array $options OPTIONAL Limit or associative array of options (option=>value)
349 349
      * @param string    $method  OPTIONAL Request method (use const's) (default = Request::POST)
350 350
      *
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     }
381 381
 
382 382
     /**
383
-     * @param mixed $query
383
+     * @param string $query
384 384
      * @param $fullResult (default = false) By default only the total hit count is returned. If set to true, the full ResultSet including aggregations is returned
385 385
      * @param string $method OPTIONAL Request method (use const's) (default = Request::POST)
386 386
      *
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * Sets / overwrites a specific config value.
191 191
      *
192 192
      * @param string $key   Key to set
193
-     * @param mixed  $value Value
193
+     * @param string  $value Value
194 194
      *
195 195
      * @return $this
196 196
      */
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
     }
201 201
 
202 202
     /**
203
-     * @param array|string $keys    config key or path of config keys
204
-     * @param mixed        $default default value will be returned if key was not found
203
+     * @param string[] $keys    config key or path of config keys
204
+     * @param boolean        $default default value will be returned if key was not found
205 205
      *
206 206
      * @return mixed
207 207
      */
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      *
292 292
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
293 293
      *
294
-     * @param array|\Elastica\Document[] $docs          Array of Elastica\Document
294
+     * @param Document[] $docs          Array of Elastica\Document
295 295
      * @param array                      $requestParams
296 296
      *
297 297
      * @throws \Elastica\Exception\InvalidException If docs is empty
Please login to merge, or discard this patch.