Completed
Push — master ( 129cf7...e70161 )
by Ema
02:11
created
src/Query/Fuzzy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Set optional parameters on the existing query.
46 46
      *
47
-     * @param mixed $value Value of the parameter
47
+     * @param double $value Value of the parameter
48 48
      *
49 49
      * @return $this
50 50
      */
Please login to merge, or discard this patch.
src/Search.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     /**
72 72
      * Constructs search object.
73
+     * @param BuilderInterface $builder
73 74
      */
74 75
     public function __construct(Client $client, ?BuilderInterface $builder = null)
75 76
     {
@@ -102,7 +103,7 @@  discard block
 block discarded – undo
102 103
     /**
103 104
      * Add array of indices at once.
104 105
      *
105
-     * @param Index[]|string[] $indices
106
+     * @param Index[] $indices
106 107
      */
107 108
     public function addIndices(array $indices = []): self
108 109
     {
Please login to merge, or discard this patch.
tests/Aggregation/TopHitsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -191,6 +191,9 @@
 block discarded – undo
191 191
         $this->assertInstanceOf(TopHits::class, $returnValue);
192 192
     }
193 193
 
194
+    /**
195
+     * @param TopHits $innerAggr
196
+     */
194 197
     protected function getOuterAggregationResult($innerAggr)
195 198
     {
196 199
         $outerAggr = new Terms('top_tags');
Please login to merge, or discard this patch.
tests/Base.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param array $params Additional configuration params. Host and Port are already set
27
+     * @param \Closure $callback
27 28
      */
28 29
     protected function _getClient(array $params = [], ?callable $callback = null, ?LoggerInterface $logger = null): Client
29 30
     {
@@ -67,6 +68,9 @@  discard block
 block discarded – undo
67 68
         return 'http://'.$proxyHost.':8001';
68 69
     }
69 70
 
71
+    /**
72
+     * @param string $name
73
+     */
70 74
     protected function _createIndex(?string $name = null, bool $delete = true, int $shards = 1): Index
71 75
     {
72 76
         $name = $name ?: static::buildUniqueId();
@@ -120,6 +124,9 @@  discard block
 block discarded – undo
120 124
         return \substr($data['version']['number'], 0, 1);
121 125
     }
122 126
 
127
+    /**
128
+     * @param string $version
129
+     */
123 130
     protected function _checkVersion($version)
124 131
     {
125 132
         $data = $this->_getClient()->request('/')->getData();
Please login to merge, or discard this patch.
tests/Transport/GuzzleTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@
 block discarded – undo
124 124
         $client->request('_status', 'GET');
125 125
     }
126 126
 
127
+    /**
128
+     * @param string $url
129
+     */
127 130
     protected function checkProxy($url)
128 131
     {
129 132
         $url = \parse_url($url);
Please login to merge, or discard this patch.
src/Client.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      *
255 255
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
256 256
      *
257
-     * @param array|\Elastica\Document[] $docs Array of Elastica\Document
257
+     * @param Document[] $docs Array of Elastica\Document
258 258
      *
259 259
      * @throws InvalidException If docs is empty
260 260
      */
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     /**
377 377
      * Bulk deletes documents.
378 378
      *
379
-     * @param array|\Elastica\Document[] $docs
379
+     * @param Document[] $docs
380 380
      *
381 381
      * @throws InvalidException
382 382
      */
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
     }
474 474
 
475 475
     /**
476
-     * @param array|\Elastica\Connection[] $connections
476
+     * @param Connection[] $connections
477 477
      *
478 478
      * @return $this
479 479
      */
Please login to merge, or discard this patch.