Completed
Pull Request — master (#1868)
by romain
02:27
created
tests/Aggregation/TopHitsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -399,6 +399,9 @@
 block discarded – undo
399 399
         return $index;
400 400
     }
401 401
 
402
+    /**
403
+     * @param TopHits $innerAggr
404
+     */
402 405
     protected function getOuterAggregationResult($innerAggr)
403 406
     {
404 407
         $outerAggr = new Terms('top_tags');
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
@@ -139,6 +139,9 @@
 block discarded – undo
139 139
         $client->request('_status', 'GET');
140 140
     }
141 141
 
142
+    /**
143
+     * @param string $url
144
+     */
142 145
     protected function checkProxy($url): void
143 146
     {
144 147
         $url = \parse_url($url);
Please login to merge, or discard this patch.
tests/StatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 
98 98
         $indicesWithAlias = $status->getIndicesWithAlias($aliasName);
99 99
         $this->assertEquals([$indexName], \array_map(
100
-            function ($index) {
100
+            function($index) {
101 101
                 return $index->getName();
102 102
             },
103 103
             $indicesWithAlias
Please login to merge, or discard this patch.
tests/ClientFunctionalTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         $this->assertEquals('AnonCoin', $index->getDocument(1)->get('name'));
173 173
         $this->assertEquals('iXcoin', $index->getDocument(2)->get('name'));
174 174
 
175
-        $ixCoin->setIndex(null);  // Make sure the index gets set properly if missing
175
+        $ixCoin->setIndex(null); // Make sure the index gets set properly if missing
176 176
         $index->deleteDocuments([$anonCoin, $ixCoin]);
177 177
 
178 178
         $this->expectException(NotFoundException::class);
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         $count = 0;
386 386
 
387 387
         // Callback function which verifies that disabled connection objects are returned
388
-        $callback = function (Connection $connection, \Exception $exception, Client $client) use (&$count): void {
388
+        $callback = function(Connection $connection, \Exception $exception, Client $client) use (&$count): void {
389 389
             $this->assertInstanceOf(Connection::class, $connection);
390 390
             $this->assertInstanceOf(ConnectionException::class, $exception);
391 391
             $this->assertInstanceOf(Client::class, $client);
Please login to merge, or discard this patch.
tests/Connection/Strategy/RoundRobinTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         ];
77 77
 
78 78
         $count = 0;
79
-        $callback = function ($connection, $exception, $client) use (&$count): void {
79
+        $callback = function($connection, $exception, $client) use (&$count): void {
80 80
             ++$count;
81 81
         };
82 82
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         ];
106 106
 
107 107
         $count = 0;
108
-        $client = $this->_getClient(['roundRobin' => true], function () use (&$count): void {
108
+        $client = $this->_getClient(['roundRobin' => true], function() use (&$count): void {
109 109
             ++$count;
110 110
         });
111 111
 
Please login to merge, or discard this patch.
tests/Connection/Strategy/SimpleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $count = 0;
66
-        $callback = function ($connection, $exception, $client) use (&$count): void {
66
+        $callback = function($connection, $exception, $client) use (&$count): void {
67 67
             ++$count;
68 68
         };
69 69
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         ];
93 93
 
94 94
         $count = 0;
95
-        $client = $this->_getClient([], function () use (&$count): void {
95
+        $client = $this->_getClient([], function() use (&$count): void {
96 96
             ++$count;
97 97
         });
98 98
 
Please login to merge, or discard this patch.
tests/Connection/Strategy/StrategyFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function testCreateCallbackStrategy(): void
24 24
     {
25
-        $callback = function ($connections): void {
25
+        $callback = function($connections): void {
26 26
         };
27 27
 
28 28
         $strategy = StrategyFactory::create($callback);
Please login to merge, or discard this patch.
src/Aggregation/WeightedAvg.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * Set the weight for this aggregation.
52 52
      *
53
-     * @param mixed $missing
53
+     * @param integer $missing
54 54
      *
55 55
      * @return $this
56 56
      */
@@ -98,7 +98,6 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * Set the value_type for this aggregation.
100 100
      *
101
-     * @param string $format
102 101
      * @param mixed  $valueType
103 102
      *
104 103
      * @return $this
Please login to merge, or discard this patch.
src/AbstractUpdateAction.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     }
189 189
 
190 190
     /**
191
-     * @param array|string $fields
191
+     * @param string $fields
192 192
      *
193 193
      * @return $this
194 194
      */
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     }
394 394
 
395 395
     /**
396
-     * @param array $fields if empty array all options will be returned
396
+     * @param string[] $fields if empty array all options will be returned
397 397
      *
398 398
      * @return array
399 399
      */
Please login to merge, or discard this patch.