@@ -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 |
@@ -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 | } |
@@ -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; |
@@ -24,10 +24,10 @@ |
||
24 | 24 | * }> |
25 | 25 | */ |
26 | 26 | private static $data = [ |
27 | - ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes', 'full_name' => 'Rodolfo Moraes'], |
|
27 | + ['id' => 1, 'name' => 'Rodolfo', 'last_name' => 'Moraes', 'full_name' => 'Rodolfo Moraes'], |
|
28 | 28 | ['id' => 2, 'name' => 'Tristan', 'last_name' => 'Maindron', 'full_name' => 'Tristan Maindron'], |
29 | 29 | ['id' => 3, 'name' => 'Monique', 'last_name' => 'Maindron', 'full_name' => 'Monique Maindron'], |
30 | - ['id' => 4, 'name' => 'John', 'last_name' => 'not Doe', 'full_name' => 'John not Doe'], |
|
30 | + ['id' => 4, 'name' => 'John', 'last_name' => 'not Doe', 'full_name' => 'John not Doe'], |
|
31 | 31 | ]; |
32 | 32 | |
33 | 33 | /** |