| @@ -6,7 +6,6 @@ | ||
| 6 | 6 | use Elastica\Bulk\Action\AbstractDocument as AbstractDocumentAction; | 
| 7 | 7 | use Elastica\Bulk\Response as BulkResponse; | 
| 8 | 8 | use Elastica\Bulk\ResponseSet; | 
| 9 | -use Elastica\Exception\Bulk\ResponseException; | |
| 10 | 9 | use Elastica\Exception\Bulk\ResponseException as BulkResponseException; | 
| 11 | 10 | use Elastica\Exception\InvalidException; | 
| 12 | 11 | use Elastica\Script\AbstractScript; | 
| @@ -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 | /** | 
| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Elastica\Test\Query; | 
| 4 | 4 | |
| 5 | 5 | use Elastica\Document; | 
| 6 | -use Elastica\Index; | |
| 7 | 6 | use Elastica\Mapping; | 
| 8 | 7 | use Elastica\Query; | 
| 9 | 8 | use Elastica\Query\MultiMatch; | 
| @@ -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 | ], | 
| @@ -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; | 
| @@ -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); | 
| @@ -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 | ]); | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 |          $signer = new SignatureV4('es', $region); | 
| 44 | 44 | $credProvider = $this->getCredentialProvider(); | 
| 45 | 45 | |
| 46 | - return Middleware::mapRequest(function (RequestInterface $req) use ( | |
| 46 | + return Middleware::mapRequest(function(RequestInterface $req) use ( | |
| 47 | 47 | $signer, | 
| 48 | 48 | $credProvider | 
| 49 | 49 |          ) { |