Completed
Push — master ( 5ad7ea...0c833f )
by Ema
02:22
created
tests/Query/MoreLikeThisTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $mapping = new Mapping([
27 27
             'email' => ['store' => true, 'type' => 'text', 'index' => true],
28
-            'content' => ['store' => true, 'type' => 'text',  'index' => true],
28
+            'content' => ['store' => true, 'type' => 'text', 'index' => true],
29 29
         ]);
30 30
 
31 31
         $mapping->setSource(['enabled' => false]);
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/BulkTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         $doc2 = new Document(2, ['name' => 'Beckenbauer'], $index);
545 545
         $doc3 = new Document(3, ['name' => 'Baggio'], $index);
546 546
         $doc4 = new Document(4, ['name' => 'Cruyff'], $index);
547
-        $documents = \array_map(function ($d) {
547
+        $documents = \array_map(function($d) {
548 548
             $d->setDocAsUpsert(true);
549 549
 
550 550
             return $d;
Please login to merge, or discard this patch.
tests/Connection/Strategy/CallbackStrategyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $count = 0;
22 22
 
23
-        $callback = function ($connections) use (&$count): Connection {
23
+        $callback = function($connections) use (&$count): Connection {
24 24
             ++$count;
25 25
 
26 26
             return \current($connections);
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $count = 0;
42 42
 
43
-        $config = ['connectionStrategy' => function ($connections) use (&$count): Connection {
43
+        $config = ['connectionStrategy' => function($connections) use (&$count): Connection {
44 44
             ++$count;
45 45
 
46 46
             return \current($connections);
Please login to merge, or discard this patch.
tests/Aggregation/TermsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $agg->setField('color');
73 73
         $agg->setOrders([
74 74
             ['_count' => 'asc'], // 1. red,   2. green, 3. blue
75
-            ['_key' => 'asc'],   // 1. green, 2. red,   3. blue
75
+            ['_key' => 'asc'], // 1. green, 2. red,   3. blue
76 76
         ]);
77 77
 
78 78
         $query = new Query();
Please login to merge, or discard this patch.
tests/MappingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
                 'properties' => [
192 192
                     'titulo' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0],
193 193
                     'contenido' => ['type' => 'text', 'copy_to' => 'testall', 'boost' => 1.0],
194
-                    'testall' => ['type' => 'text',  'boost' => 1.0],
194
+                    'testall' => ['type' => 'text', 'boost' => 1.0],
195 195
                 ],
196 196
             ],
197 197
         ]);
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
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $signer = new SignatureV4('es', $region);
44 44
         $credProvider = $this->getCredentialProvider();
45 45
 
46
-        return Middleware::mapRequest(function (RequestInterface $req) use (
46
+        return Middleware::mapRequest(function(RequestInterface $req) use (
47 47
             $signer,
48 48
             $credProvider
49 49
         ) {
Please login to merge, or discard this patch.
src/Client.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      *
255 255
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
256 256
      *
257
-     * @param array|\Elastica\Document[] $docs Array of Elastica\Document
257
+     * @param Document[] $docs Array of Elastica\Document
258 258
      *
259 259
      * @throws InvalidException If docs is empty
260 260
      */
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     /**
377 377
      * Bulk deletes documents.
378 378
      *
379
-     * @param array|\Elastica\Document[] $docs
379
+     * @param Document[] $docs
380 380
      *
381 381
      * @throws InvalidException
382 382
      */
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
     }
474 474
 
475 475
     /**
476
-     * @param array|\Elastica\Connection[] $connections
476
+     * @param Connection[] $connections
477 477
      *
478 478
      * @return $this
479 479
      */
Please login to merge, or discard this patch.