Completed
Pull Request — master (#1755)
by Ema
06:05 queued 13s
created
tests/Query/DisMaxTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $index->refresh();
100 100
 
101 101
         $queryString1 = ['query_string' => [
102
-              'query' => 'Bade*',
102
+                'query' => 'Bade*',
103 103
             ],
104 104
         ];
105 105
 
Please login to merge, or discard this patch.
tests/Query/MultiMatchTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/Query/FunctionScoreTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -561,7 +561,7 @@
 block discarded – undo
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
                 ],
Please login to merge, or discard this patch.
tests/StatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
         $indicesWithAlias = $status->getIndicesWithAlias($aliasName);
95 95
         $this->assertEquals([$indexName], \array_map(
96
-            function ($index) {
96
+            function($index) {
97 97
                 return $index->getName();
98 98
             }, $indicesWithAlias));
99 99
     }
Please login to merge, or discard this patch.
tests/Transport/TransportBenchmarkTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
             'persistent' => true,
169 169
             ],
170 170
             'Http:Persistent',
171
-       ];
171
+        ];
172 172
     }
173 173
 
174 174
     protected function getData(string $test): array
Please login to merge, or discard this patch.
tests/ClientTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $this->assertEquals('AnonCoin', $index->getDocument(1)->get('name'));
269 269
         $this->assertEquals('iXcoin', $index->getDocument(2)->get('name'));
270 270
 
271
-        $ixCoin->setIndex(null);  // Make sure the index gets set properly if missing
271
+        $ixCoin->setIndex(null); // Make sure the index gets set properly if missing
272 272
         $index->deleteDocuments([$anonCoin, $ixCoin]);
273 273
 
274 274
         $this->expectException(NotFoundException::class);
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
         $object = $this;
499 499
 
500 500
         // Callback function which verifies that disabled connection objects are returned
501
-        $callback = function ($connection, $exception, $client) use (&$object, &$count) {
501
+        $callback = function($connection, $exception, $client) use (&$object, &$count) {
502 502
             $object->assertInstanceOf(Connection::class, $connection);
503 503
             $object->assertInstanceOf(ConnectionException::class, $exception);
504 504
             $object->assertInstanceOf(Client::class, $client);
Please login to merge, or discard this patch.
tests/Suggest/CompletionTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -142,14 +142,14 @@
 block discarded – undo
142 142
         $query = Query::create($sug);
143 143
 
144 144
         $expectedSuggestions = [
145
-          'suggestName1' => [
146
-              0 => [
147
-                  'text' => 'Neavermint',
148
-                  'offset' => 0,
149
-                  'length' => 10,
150
-                  'options' => [],
151
-                  ],
152
-          ],
145
+            'suggestName1' => [
146
+                0 => [
147
+                    'text' => 'Neavermint',
148
+                    'offset' => 0,
149
+                    'length' => 10,
150
+                    'options' => [],
151
+                    ],
152
+            ],
153 153
             'suggestName2' => [
154 154
                 0 => [
155 155
                     'text' => 'Neverdint',
Please login to merge, or discard this patch.
tests/ResultTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             'integer',
96 96
             \gettype($resultSet->getTotalTime()),
97 97
             'Total Time should be an integer'
98
-         );
98
+            );
99 99
     }
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
tests/Exception/PartialShardFailureExceptionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                         'number_of_replicas' => 0,
26 26
                         ],
27 27
                     ],
28
-           ], true);
28
+            ], true);
29 29
 
30 30
         $index->addDocument(new Document('', ['name' => 'ruflin']));
31 31
         $index->addDocument(new Document('', ['name' => 'bobrik']));
Please login to merge, or discard this patch.