Completed
Pull Request — master (#1755)
by Ema
06:05 queued 13s
created
tests/Connection/Strategy/SimpleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         ];
61 61
 
62 62
         $count = 0;
63
-        $callback = function ($connection, $exception, $client) use (&$count) {
63
+        $callback = function($connection, $exception, $client) use (&$count) {
64 64
             ++$count;
65 65
         };
66 66
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         ];
90 90
 
91 91
         $count = 0;
92
-        $client = $this->_getClient([], function () use (&$count) {
92
+        $client = $this->_getClient([], function() use (&$count) {
93 93
             ++$count;
94 94
         });
95 95
 
Please login to merge, or discard this patch.
tests/Connection/Strategy/RoundRobinTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         ];
74 74
 
75 75
         $count = 0;
76
-        $callback = function ($connection, $exception, $client) use (&$count) {
76
+        $callback = function($connection, $exception, $client) use (&$count) {
77 77
             ++$count;
78 78
         };
79 79
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         ];
103 103
 
104 104
         $count = 0;
105
-        $client = $this->_getClient(['roundRobin' => true], function () use (&$count) {
105
+        $client = $this->_getClient(['roundRobin' => true], function() use (&$count) {
106 106
             ++$count;
107 107
         });
108 108
 
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/Connection/Strategy/StrategyFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function testCreateCallbackStrategy()
21 21
     {
22
-        $callback = function ($connections) {
22
+        $callback = function($connections) {
23 23
         };
24 24
 
25 25
         $strategy = StrategyFactory::create($callback);
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/Aggregation/ReverseNestedTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
                 'tags' => ['foo', 'bar'],
45 45
             ]),
46 46
             new Document(2, [
47
-                 'comments' => [
47
+                    'comments' => [
48 48
                     [
49 49
                         'name' => 'bob',
50 50
                         'body' => 'this is another comment from bob',
Please login to merge, or discard this patch.
tests/Aggregation/ParentAggregationTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     {
125 125
         $topNames = new Terms('top-names');
126 126
         $topNames->setField('owner')
127
-                 ->setSize(10);
127
+                    ->setSize(10);
128 128
 
129 129
         $toQuestions = new ParentAggregation('to-questions');
130 130
         $toQuestions->setType('answer');
Please login to merge, or discard this patch.
tests/MappingTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,15 +122,15 @@
 block discarded – undo
122 122
 
123 123
         $expected = [
124 124
             'properties' => [
125
-                  'firstname' => ['type' => 'text', 'store' => true],
126
-                  'lastname' => ['type' => 'text'],
127
-                  'my_join_field' => [
128
-                      'type' => 'join',
129
-                      'relations' => [
130
-                          'question' => 'answer',
131
-                      ],
132
-                  ],
133
-              ],
125
+                    'firstname' => ['type' => 'text', 'store' => true],
126
+                    'lastname' => ['type' => 'text'],
127
+                    'my_join_field' => [
128
+                        'type' => 'join',
129
+                        'relations' => [
130
+                            'question' => 'answer',
131
+                        ],
132
+                    ],
133
+                ],
134 134
         ];
135 135
 
136 136
         $this->assertEquals($expected, $mapping->toArray());
Please login to merge, or discard this 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.