Completed
Pull Request — master (#2121)
by Nicolas
44s
created
tests/StatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/QueryBuilder/DSL/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Transport/AwsAuthV4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/BulkTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -554,7 +554,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/Aggregation/GeoBoundsTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         $query->addAggregation($agg);
25 25
         $results = $this->getIndexForTest()->search($query)->getAggregation('viewport');
26 26
 
27
-        $this->assertEquals(\round(37.782438984141,6), \round($results['bounds']['top_left']['lat'],6));
28
-        $this->assertEquals(\round(-122.39256000146,6), \round($results['bounds']['top_left']['lon'],6));
29
-        $this->assertEquals(\round(32.798319971189,6), \round($results['bounds']['bottom_right']['lat'],6));
30
-        $this->assertEquals(\round(-117.24664804526,6), \round($results['bounds']['bottom_right']['lon'],6));
27
+        $this->assertEquals(\round(37.782438984141, 6), \round($results['bounds']['top_left']['lat'], 6));
28
+        $this->assertEquals(\round(-122.39256000146, 6), \round($results['bounds']['top_left']['lon'], 6));
29
+        $this->assertEquals(\round(32.798319971189, 6), \round($results['bounds']['bottom_right']['lat'], 6));
30
+        $this->assertEquals(\round(-117.24664804526, 6), \round($results['bounds']['bottom_right']['lon'], 6));
31 31
     }
32 32
 
33 33
     private function getIndexForTest(): Index
Please login to merge, or discard this patch.