@@ -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]); |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | private $multiMatch; |
| 16 | 16 | |
| 17 | 17 | private static $data = [ |
| 18 | - ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes', 'full_name' => 'Rodolfo Moraes'], |
|
| 18 | + ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes', 'full_name' => 'Rodolfo Moraes'], |
|
| 19 | 19 | ['id' => 2, 'name' => 'Tristan', 'last_name' => 'Maindron', 'full_name' => 'Tristan Maindron'], |
| 20 | 20 | ['id' => 3, 'name' => 'Monique', 'last_name' => 'Maindron', 'full_name' => 'Monique Maindron'], |
| 21 | - ['id' => 4, 'name' => 'John', 'last_name' => 'not Doe', 'full_name' => 'John not Doe'], |
|
| 21 | + ['id' => 4, 'name' => 'John', 'last_name' => 'not Doe', 'full_name' => 'John not Doe'], |
|
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -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 | ], |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | |
| 94 | 94 | $indicesWithAlias = $status->getIndicesWithAlias($aliasName); |
| 95 | 95 | $this->assertEquals([$indexName], \array_map( |
| 96 | - function ($index) { |
|
| 96 | + function($index) { |
|
| 97 | 97 | return $index->getName(); |
| 98 | 98 | }, $indicesWithAlias)); |
| 99 | 99 | } |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | $this->assertEquals('AnonCoin', $index->getDocument(1)->get('name')); |
| 269 | 269 | $this->assertEquals('iXcoin', $index->getDocument(2)->get('name')); |
| 270 | 270 | |
| 271 | - $ixCoin->setIndex(null); // Make sure the index gets set properly if missing |
|
| 271 | + $ixCoin->setIndex(null); // Make sure the index gets set properly if missing |
|
| 272 | 272 | $index->deleteDocuments([$anonCoin, $ixCoin]); |
| 273 | 273 | |
| 274 | 274 | $this->expectException(NotFoundException::class); |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | $object = $this; |
| 499 | 499 | |
| 500 | 500 | // Callback function which verifies that disabled connection objects are returned |
| 501 | - $callback = function ($connection, $exception, $client) use (&$object, &$count) { |
|
| 501 | + $callback = function($connection, $exception, $client) use (&$object, &$count) { |
|
| 502 | 502 | $object->assertInstanceOf(Connection::class, $connection); |
| 503 | 503 | $object->assertInstanceOf(ConnectionException::class, $exception); |
| 504 | 504 | $object->assertInstanceOf(Client::class, $client); |
@@ -544,7 +544,7 @@ |
||
| 544 | 544 | $doc2 = new Document(2, ['name' => 'Beckenbauer'], $index); |
| 545 | 545 | $doc3 = new Document(3, ['name' => 'Baggio'], $index); |
| 546 | 546 | $doc4 = new Document(4, ['name' => 'Cruyff'], $index); |
| 547 | - $documents = \array_map(function ($d) { |
|
| 547 | + $documents = \array_map(function($d) { |
|
| 548 | 548 | $d->setDocAsUpsert(true); |
| 549 | 549 | |
| 550 | 550 | return $d; |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ]; |
| 61 | 61 | |
| 62 | 62 | $count = 0; |
| 63 | - $callback = function ($connection, $exception, $client) use (&$count) { |
|
| 63 | + $callback = function($connection, $exception, $client) use (&$count) { |
|
| 64 | 64 | ++$count; |
| 65 | 65 | }; |
| 66 | 66 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | ]; |
| 90 | 90 | |
| 91 | 91 | $count = 0; |
| 92 | - $client = $this->_getClient([], function () use (&$count) { |
|
| 92 | + $client = $this->_getClient([], function() use (&$count) { |
|
| 93 | 93 | ++$count; |
| 94 | 94 | }); |
| 95 | 95 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | ]; |
| 74 | 74 | |
| 75 | 75 | $count = 0; |
| 76 | - $callback = function ($connection, $exception, $client) use (&$count) { |
|
| 76 | + $callback = function($connection, $exception, $client) use (&$count) { |
|
| 77 | 77 | ++$count; |
| 78 | 78 | }; |
| 79 | 79 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | $count = 0; |
| 105 | - $client = $this->_getClient(['roundRobin' => true], function () use (&$count) { |
|
| 105 | + $client = $this->_getClient(['roundRobin' => true], function() use (&$count) { |
|
| 106 | 106 | ++$count; |
| 107 | 107 | }); |
| 108 | 108 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $count = 0; |
| 22 | 22 | |
| 23 | - $callback = function ($connections) use (&$count): Connection { |
|
| 23 | + $callback = function($connections) use (&$count): Connection { |
|
| 24 | 24 | ++$count; |
| 25 | 25 | |
| 26 | 26 | return \current($connections); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $count = 0; |
| 42 | 42 | |
| 43 | - $config = ['connectionStrategy' => function ($connections) use (&$count): Connection { |
|
| 43 | + $config = ['connectionStrategy' => function($connections) use (&$count): Connection { |
|
| 44 | 44 | ++$count; |
| 45 | 45 | |
| 46 | 46 | return \current($connections); |