Completed
Push — master ( d6f0bd...41a21b )
by Ivannis Suárez
05:43
created
DataSource/IteratorDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
             if (!($this->iterator instanceof \ArrayIterator)) {
189 189
                 $this->iterator = new \ArrayIterator(iterator_to_array($this->iterator));
190 190
             }
191
-            $this->iterator->uasort(function ($a, $b) {
191
+            $this->iterator->uasort(function($a, $b) {
192 192
                 return $this->sortCriteria()->compare($a, $b);
193 193
             });
194 194
 
Please login to merge, or discard this patch.
Tests/Units/DataSource/IteratorDataSourceTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $this
121 121
             ->given(
122 122
                 $comparator = new Comparator(),
123
-                $sortCriteria = new Custom(function ($a, $b) use ($comparator) {
123
+                $sortCriteria = new Custom(function($a, $b) use ($comparator) {
124 124
                     return -1 * $comparator->compare($a, $b);
125 125
                 }),
126 126
                 $datasource = $this->randomDataSource(Criteria::method('value')->lt(10), $sortCriteria)
Please login to merge, or discard this patch.
Tests/Units/DataSource/DataSourceTestCase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $this->getAssertionManager()
61 61
             ->setHandler(
62 62
                 'randomDataSource',
63
-                function (
63
+                function(
64 64
                     SpecificationInterface $searchCriteria = null,
65 65
                     ComparatorInterface $sortCriteria = null,
66 66
                     $offset = null,
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
             )
77 77
             ->setHandler(
78 78
                 'emptyDataSource',
79
-                function () {
79
+                function() {
80 80
                     return $this->emptyDataSource();
81 81
                 }
82 82
             )
83 83
             ->setHandler(
84 84
                 'uniqueValue',
85
-                function () {
85
+                function() {
86 86
                     return $this->uniqueValue();
87 87
                 }
88 88
             )
Please login to merge, or discard this patch.
Tests/Units/ListTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                         ->isEqualTo(\count($items))
82 82
             ->and()
83 83
             ->then()
84
-                ->exception(function () use ($collection) {
84
+                ->exception(function() use ($collection) {
85 85
                     $collection->addAll(100);
86 86
                 })->isInstanceOf(\InvalidArgumentException::class)
87 87
         ;
Please login to merge, or discard this patch.
Tests/Units/ArrayCollection/ArrayListTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                     ->isFalse()
158 158
             ->and()
159 159
             ->then()
160
-                ->exception(function () use ($collection) {
160
+                ->exception(function() use ($collection) {
161 161
                     $collection->removeAt('foo');
162 162
                 })->isInstanceOf(InvalidKeyException::class)
163 163
         ;
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 ->variable($collection[$key])
244 244
                     ->isEqualTo($unique)
245 245
             ->and()
246
-            ->when(function () use ($collection, $key) {
246
+            ->when(function() use ($collection, $key) {
247 247
                 unset($collection[$key]);
248 248
             })
249 249
             ->then()
Please login to merge, or discard this patch.
Tests/Units/ArrayCollection/ArrayHashMapTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
                 ->variable($collection[$key])
166 166
                     ->isEqualTo($unique)
167 167
             ->and()
168
-            ->when(function () use ($collection, $key) {
168
+            ->when(function() use ($collection, $key) {
169 169
                 unset($collection[$key]);
170 170
             })
171 171
             ->then()
Please login to merge, or discard this patch.
Tests/Units/ArrayCollection/ArraySetTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             ->then()
154 154
                 ->boolean(isset($collection[$key]))
155 155
                     ->isTrue()
156
-                ->exception(function () use ($collection) {
156
+                ->exception(function() use ($collection) {
157 157
                     isset($collection['foo']);
158 158
                 })->isInstanceOf(InvalidKeyException::class)
159 159
         ;
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 ->variable($collection[$key])
218 218
                     ->isEqualTo($unique)
219 219
             ->and()
220
-            ->when(function () use ($collection, $key) {
220
+            ->when(function() use ($collection, $key) {
221 221
                 unset($collection[$key]);
222 222
             })
223 223
             ->then()
Please login to merge, or discard this patch.
Tests/Units/HashMapTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             ->then()
66 66
                 ->hashmap($collection)
67 67
                     ->containsKey('foo')
68
-                ->exception(function () use ($collection) {
68
+                ->exception(function() use ($collection) {
69 69
                     $collection->set(new \StdClass(), 'value');
70 70
                 })->isInstanceOf(InvalidKeyException::class)
71 71
         ;
Please login to merge, or discard this patch.
Tests/Units/SetTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
                         ->isEqualTo(\count($items))
82 82
             ->and()
83 83
             ->then()
84
-                ->exception(function () use ($collection) {
84
+                ->exception(function() use ($collection) {
85 85
                     $collection->addAll(100);
86 86
                 })->isInstanceOf(\InvalidArgumentException::class)
87 87
         ;
Please login to merge, or discard this patch.