@@ -63,7 +63,7 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $data = $this->getData(); |
| 65 | 65 | |
| 66 | - return \array_map(static function ($name): string { |
|
| 66 | + return \array_map(static function($name): string { |
|
| 67 | 67 | return (string) $name; |
| 68 | 68 | }, \array_keys($data['indices'])); |
| 69 | 69 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * |
| 75 | 75 | * @param mixed $values |
| 76 | 76 | */ |
| 77 | - public function match(?string $field = null, $values = null): MatchQuery |
|
| 77 | + public function match(?string $field = null, $values = null) : MatchQuery |
|
| 78 | 78 | { |
| 79 | 79 | return new MatchQuery($field, $values); |
| 80 | 80 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $credProvider = $this->getCredentialProvider(); |
| 46 | 46 | $transport = $this; |
| 47 | 47 | |
| 48 | - return Middleware::mapRequest(static function (RequestInterface $req) use ( |
|
| 48 | + return Middleware::mapRequest(static function(RequestInterface $req) use ( |
|
| 49 | 49 | $signer, |
| 50 | 50 | $credProvider, |
| 51 | 51 | $transport |
@@ -554,7 +554,7 @@ |
||
| 554 | 554 | $doc2 = new Document('2', ['name' => 'Beckenbauer'], $index); |
| 555 | 555 | $doc3 = new Document('3', ['name' => 'Baggio'], $index); |
| 556 | 556 | $doc4 = new Document('4', ['name' => 'Cruyff'], $index); |
| 557 | - $documents = \array_map(static function ($d) { |
|
| 557 | + $documents = \array_map(static function($d) { |
|
| 558 | 558 | $d->setDocAsUpsert(true); |
| 559 | 559 | |
| 560 | 560 | return $d; |
@@ -415,7 +415,7 @@ |
||
| 415 | 415 | $count = 0; |
| 416 | 416 | |
| 417 | 417 | // Callback function which verifies that disabled connection objects are returned |
| 418 | - $callback = function (Connection $connection, \Exception $exception, Client $client) use (&$count): void { |
|
| 418 | + $callback = function(Connection $connection, \Exception $exception, Client $client) use (&$count): void { |
|
| 419 | 419 | $this->assertInstanceOf(Connection::class, $connection); |
| 420 | 420 | $this->assertInstanceOf(ConnectionException::class, $exception); |
| 421 | 421 | $this->assertInstanceOf(Client::class, $client); |