Completed
Push — master ( 3a2d29...d0475e )
by Nicolas
02:57
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/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/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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * Sets / overwrites a specific config value.
188 188
      *
189 189
      * @param string $key   Key to set
190
-     * @param mixed  $value Value
190
+     * @param string  $value Value
191 191
      *
192 192
      * @return $this
193 193
      */
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
     }
198 198
 
199 199
     /**
200
-     * @param array|string $keys    config key or path of config keys
201
-     * @param mixed        $default default value will be returned if key was not found
200
+     * @param string[] $keys    config key or path of config keys
201
+     * @param boolean        $default default value will be returned if key was not found
202 202
      *
203 203
      * @return mixed
204 204
      */
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     /**
331 331
      * Update document, using update script. Requires elasticsearch >= 0.19.0.
332 332
      *
333
-     * @param int|string                                               $id      document id
333
+     * @param string                                               $id      document id
334 334
      * @param array|\Elastica\Script\AbstractScript|\Elastica\Document $data    raw data for request body
335 335
      * @param string                                                   $index   index to update
336 336
      * @param string                                                   $type    type of index to update
@@ -551,8 +551,8 @@  discard block
 block discarded – undo
551 551
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
552 552
      *
553 553
      * @param array                  $ids     Document ids
554
-     * @param string|\Elastica\Index $index   Index name
555
-     * @param string|\Elastica\Type  $type    Type of documents
554
+     * @param Index $index   Index name
555
+     * @param Type  $type    Type of documents
556 556
      * @param string|bool            $routing Optional routing key for all ids
557 557
      *
558 558
      * @throws \Elastica\Exception\InvalidException
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
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     /**
38 38
      * Creates a new document.
39 39
      *
40
-     * @param int|string   $id    OPTIONAL $id Id is create if empty
40
+     * @param string   $id    OPTIONAL $id Id is create if empty
41 41
      * @param array|string $data  OPTIONAL Data array
42
-     * @param Type|string  $type  OPTIONAL Type name
43
-     * @param Index|string $index OPTIONAL Index name
42
+     * @param string  $type  OPTIONAL Type name
43
+     * @param Index $index OPTIONAL Index name
44 44
      */
45 45
     public function __construct($id = '', $data = array(), $type = '', $index = '')
46 46
     {
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.