Completed
Push — master ( 80e59a...607312 )
by François-Xavier
02:52
created
src/Document.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     /**
77 77
      * Get the value of the given field.
78 78
      *
79
-     * @param mixed $key
79
+     * @param string $key
80 80
      *
81 81
      * @throws InvalidException If the given field does not exist
82 82
      *
Please login to merge, or discard this patch.
src/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     /**
155 155
      * Update entries in the db based on a query.
156 156
      *
157
-     * @param array|Query|string $query   Query object or array
157
+     * @param string $query   Query object or array
158 158
      * @param AbstractScript     $script  Script
159 159
      * @param array              $options Optional params
160 160
      *
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.
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.
src/Node/Info.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * Create new info object for node.
54 54
      *
55 55
      * @param BaseNode $node   Node object
56
-     * @param array    $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http
56
+     * @param string[]    $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http
57 57
      */
58 58
     public function __construct(BaseNode $node, array $params = [])
59 59
     {
Please login to merge, or discard this patch.
tests/Query/MultiMatchTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 class MultiMatchTest extends BaseTest
15 15
 {
16 16
     private static $data = [
17
-        ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes',   'full_name' => 'Rodolfo Moraes'],
17
+        ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes', 'full_name' => 'Rodolfo Moraes'],
18 18
         ['id' => 2, 'name' => 'Tristan', 'last_name' => 'Maindron', 'full_name' => 'Tristan Maindron'],
19 19
         ['id' => 3, 'name' => 'Monique', 'last_name' => 'Maindron', 'full_name' => 'Monique Maindron'],
20
-        ['id' => 4, 'name' => 'John',    'last_name' => 'not Doe',  'full_name' => 'John not Doe'],
20
+        ['id' => 4, 'name' => 'John', 'last_name' => 'not Doe', 'full_name' => 'John not Doe'],
21 21
     ];
22 22
 
23 23
     /**
Please login to merge, or discard this patch.
src/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(static function (RequestInterface $req) use (
46
+        return Middleware::mapRequest(static function(RequestInterface $req) use (
47 47
             $signer,
48 48
             $credProvider
49 49
         ) {
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
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         ];
63 63
 
64 64
         $count = 0;
65
-        $callback = static function ($connection, $exception, $client) use (&$count): void {
65
+        $callback = static function($connection, $exception, $client) use (&$count): void {
66 66
             ++$count;
67 67
         };
68 68
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         ];
91 91
 
92 92
         $count = 0;
93
-        $client = $this->_getClient([], static function () use (&$count): void {
93
+        $client = $this->_getClient([], static function() use (&$count): void {
94 94
             ++$count;
95 95
         });
96 96
 
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
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         ];
75 75
 
76 76
         $count = 0;
77
-        $callback = static function ($connection, $exception, $client) use (&$count): void {
77
+        $callback = static function($connection, $exception, $client) use (&$count): void {
78 78
             ++$count;
79 79
         };
80 80
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         ];
103 103
 
104 104
         $count = 0;
105
-        $client = $this->_getClient(['roundRobin' => true], static function () use (&$count): void {
105
+        $client = $this->_getClient(['roundRobin' => true], static function() use (&$count): void {
106 106
             ++$count;
107 107
         });
108 108
 
Please login to merge, or discard this patch.