Completed
Pull Request — master (#1070)
by Tim
05:00
created
lib/Elastica/Filter/GeohashCell.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * @param string       $key       The field on which to filter
17 17
      * @param array|string $location  Location as coordinates array or geohash string ['lat' => 40.3, 'lon' => 45.2]
18
-     * @param string|int   $precision Integer length of geohash prefix or distance (3, or "50m")
18
+     * @param integer   $precision Integer length of geohash prefix or distance (3, or "50m")
19 19
      * @param bool         $neighbors If true, filters cells next to the given cell.
20 20
      */
21 21
     public function __construct($key, $location, $precision = -1, $neighbors = false)
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Set the precision for this filter.
30 30
      *
31
-     * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m")
31
+     * @param integer $precision Integer length of geohash prefix or distance (3, or "50m")
32 32
      *
33 33
      * @return $this
34 34
      */
Please login to merge, or discard this patch.
lib/Elastica/Filter/HasParent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      * Construct HasParent filter.
17 17
      *
18 18
      * @param string|\Elastica\Query|\Elastica\Filter\AbstractFilter $query Query string or a Query object or a filter
19
-     * @param string|\Elastica\Type                                  $type  Parent document type
19
+     * @param string                                  $type  Parent document type
20 20
      */
21 21
     public function __construct($query, $type)
22 22
     {
Please login to merge, or discard this patch.
lib/Elastica/Filter/Indices.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * @param AbstractFilter $filter  filter which will be applied to docs in the specified indices
19
-     * @param mixed[]        $indices
19
+     * @param string[]        $indices
20 20
      */
21 21
     public function __construct(AbstractFilter $filter, array $indices)
22 22
     {
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/Connection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
      *
249 249
      * @throws \Elastica\Exception\InvalidException If invalid transport type
250 250
      *
251
-     * @return TransportInterface
251
+     * @return Request
252 252
      */
253 253
     public function getTransportObject()
254 254
     {
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     /**
385 385
      * @deprecated Use $client->getConnectionPool()->getConnections()
386 386
      *
387
-     * @return \Elastica\Connection[]
387
+     * @return Connection\ConnectionInterface
388 388
      */
389 389
     public function getConnections()
390 390
     {
@@ -421,8 +421,8 @@  discard block
 block discarded – undo
421 421
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
422 422
      *
423 423
      * @param array                  $ids     Document ids
424
-     * @param string|\Elastica\Index $index   Index name
425
-     * @param string|\Elastica\Type  $type    Type of documents
424
+     * @param Index $index   Index name
425
+     * @param Type  $type    Type of documents
426 426
      * @param string|bool            $routing Optional routing key for all ids
427 427
      *
428 428
      * @throws \Elastica\Exception\InvalidException
Please login to merge, or discard this patch.
lib/Elastica/Connection/ConnectionPool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @return ConnectionInterface[]
83
+     * @return ConnectionInterface
84 84
      */
85 85
     public function getConnections()
86 86
     {
Please login to merge, or discard this patch.
lib/Elastica/Connection/Strategy/StrategyFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 class StrategyFactory
13 13
 {
14 14
     /**
15
-     * @param mixed|callable|string|StrategyInterface $strategyName
15
+     * @param string $strategyName
16 16
      *
17 17
      * @throws \Elastica\Exception\InvalidException
18 18
      *
Please login to merge, or discard this patch.