Completed
Pull Request — master (#1193)
by Oleg
03:43
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/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/Tool/CrossIndex.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             $types = is_array($types) ? $types : array($types);
134 134
 
135 135
             $types = array_map(
136
-                function ($type) {
136
+                function($type) {
137 137
                     if ($type instanceof Type) {
138 138
                         $type = $type->getName();
139 139
                     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Elastica\Index;
6 6
 use Elastica\Query\MatchAll;
7 7
 use Elastica\ScanAndScroll;
8
-use Elastica\Search;
9 8
 use Elastica\Type;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
lib/Elastica/Query/MoreLikeThis.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
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 1 patch
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.
lib/Elastica/AbstractUpdateAction.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-     * @param array|string $fields
326
+     * @param string $fields
327 327
      *
328 328
      * @return $this
329 329
      */
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
     }
547 547
 
548 548
     /**
549
-     * @param array $fields         if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing
549
+     * @param string[] $fields         if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing
550 550
      * @param bool  $withUnderscore should option keys contain underscore prefix
551 551
      *
552 552
      * @return array
Please login to merge, or discard this patch.