Completed
Pull Request — master (#1549)
by Massimiliano
02:23
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/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.
lib/Elastica/Document.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
     /**
36 36
      * Creates a new document.
37 37
      *
38
-     * @param int|string   $id    OPTIONAL $id Id is create if empty
38
+     * @param string   $id    OPTIONAL $id Id is create if empty
39 39
      * @param array|string $data  OPTIONAL Data array
40
-     * @param Type|string  $type  OPTIONAL Type name
41
-     * @param Index|string $index OPTIONAL Index name
40
+     * @param string  $type  OPTIONAL Type name
41
+     * @param Index $index OPTIONAL Index name
42 42
      */
43 43
     public function __construct($id = '', $data = [], $type = '', $index = '')
44 44
     {
Please login to merge, or discard this patch.
lib/Elastica/Transport/AbstractTransport.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      *
67 67
      * @param string $query
68 68
      *
69
-     * @return mixed
69
+     * @return string
70 70
      */
71 71
     public function sanityzeQueryStringBool($query)
72 72
     {
Please login to merge, or discard this patch.
lib/Elastica/Suggest/Term.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      * - jaro_winkler
138 138
      * - ngram
139 139
      *
140
-     * @param string $distanceAlgrorithm
140
+     * @param string $distanceAlgorithm
141 141
      *
142 142
      * @return $this
143 143
      */
Please login to merge, or discard this patch.
lib/Elastica/Transport/NullTransport.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,8 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Set response object the transport returns.
28 28
      *
29
-     * @param \Elastica\Response $response
30 29
      *
31
-     * @return $this
30
+     * @return Response
32 31
      */
33 32
     public function getResponse()
34 33
     {
@@ -40,7 +39,7 @@  discard block
 block discarded – undo
40 39
      *
41 40
      * @param \Elastica\Response $response
42 41
      *
43
-     * @return $this
42
+     * @return Response
44 43
      */
45 44
     public function setResponse(Response $response)
46 45
     {
Please login to merge, or discard this patch.