@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | $count = 0; |
| 24 | 24 | |
| 25 | - $callback = static function ($connections) use (&$count): Connection { |
|
| 25 | + $callback = static function($connections) use (&$count): Connection { |
|
| 26 | 26 | ++$count; |
| 27 | 27 | |
| 28 | 28 | return \current($connections); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | $count = 0; |
| 44 | 44 | |
| 45 | - $config = ['connectionStrategy' => static function ($connections) use (&$count): Connection { |
|
| 45 | + $config = ['connectionStrategy' => static function($connections) use (&$count): Connection { |
|
| 46 | 46 | ++$count; |
| 47 | 47 | |
| 48 | 48 | return \current($connections); |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | |
| 97 | 97 | $indicesWithAlias = $status->getIndicesWithAlias($aliasName); |
| 98 | 98 | $this->assertEquals([$indexName], \array_map( |
| 99 | - static function ($index) { |
|
| 99 | + static function($index) { |
|
| 100 | 100 | return $index->getName(); |
| 101 | 101 | }, |
| 102 | 102 | $indicesWithAlias |
@@ -550,7 +550,7 @@ |
||
| 550 | 550 | $doc2 = new Document(2, ['name' => 'Beckenbauer'], $index); |
| 551 | 551 | $doc3 = new Document(3, ['name' => 'Baggio'], $index); |
| 552 | 552 | $doc4 = new Document(4, ['name' => 'Cruyff'], $index); |
| 553 | - $documents = \array_map(static function ($d) { |
|
| 553 | + $documents = \array_map(static function($d) { |
|
| 554 | 554 | $d->setDocAsUpsert(true); |
| 555 | 555 | |
| 556 | 556 | return $d; |
@@ -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 | } |