@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | $mapping = new Mapping([ |
| 27 | 27 | 'email' => ['store' => true, 'type' => 'text', 'index' => true], |
| 28 | - 'content' => ['store' => true, 'type' => 'text', 'index' => true], |
|
| 28 | + 'content' => ['store' => true, 'type' => 'text', 'index' => true], |
|
| 29 | 29 | ]); |
| 30 | 30 | |
| 31 | 31 | $mapping->setSource(['enabled' => false]); |
@@ -561,7 +561,7 @@ |
||
| 561 | 561 | 'field' => 'popularity', |
| 562 | 562 | 'factor' => 1.2, |
| 563 | 563 | 'modifier' => 'sqrt', |
| 564 | - 'missing' => 0.1, // available from >=1.6 |
|
| 564 | + 'missing' => 0.1, // available from >=1.6 |
|
| 565 | 565 | ], |
| 566 | 566 | ], |
| 567 | 567 | ], |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $agg->setField('color'); |
| 73 | 73 | $agg->setOrders([ |
| 74 | 74 | ['_count' => 'asc'], // 1. red, 2. green, 3. blue |
| 75 | - ['_key' => 'asc'], // 1. green, 2. red, 3. blue |
|
| 75 | + ['_key' => 'asc'], // 1. green, 2. red, 3. blue |
|
| 76 | 76 | ]); |
| 77 | 77 | |
| 78 | 78 | $query = new Query(); |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | 'properties' => [ |
| 192 | 192 | 'titulo' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0], |
| 193 | 193 | 'contenido' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0], |
| 194 | - 'testall' => ['type' => 'text', 'boost' => 1.0], |
|
| 194 | + 'testall' => ['type' => 'text', 'boost' => 1.0], |
|
| 195 | 195 | ], |
| 196 | 196 | ], |
| 197 | 197 | ]); |
@@ -172,7 +172,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -14,10 +14,10 @@ |
||
| 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 | /** |
@@ -43,7 +43,7 @@ |
||
| 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 | ) { |
@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -74,7 +74,7 @@ discard block |
||
| 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 |
||
| 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 | |