Completed
Push — master ( 52ccab...c20e33 )
by Ivannis Suárez
02:29
created
ArrayCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
             $criteria = new Comparator();
215 215
         }
216 216
 
217
-        uasort($this->items, function ($a, $b) use ($criteria) {
217
+        uasort($this->items, function($a, $b) use ($criteria) {
218 218
             return $criteria->compare($a, $b);
219 219
         });
220 220
     }
Please login to merge, or discard this patch.
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/ArrayCollectionTests.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
284 284
             )
285 285
             ->when($keys = $collection->keys())
286 286
                 ->collection($keys)
287
-                   ->array($keys->toArray())
287
+                    ->array($keys->toArray())
288 288
                         ->isEqualTo(\array_keys($collection->toArray()));
289 289
     }
290 290
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                 ->boolean($collection->containsKey($key))
106 106
                     ->isTrue()
107 107
             ->and
108
-            ->exception(function () use ($collection, $unique) {
108
+            ->exception(function() use ($collection, $unique) {
109 109
                 $collection->set($unique, $unique);
110 110
             })->isInstanceOf(InvalidKeyException::class)
111 111
         ;
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                 ->variable($collection[$key])
265 265
                     ->isEqualTo($unique)
266 266
             ->and()
267
-            ->when(function () use ($collection, $key) {
267
+            ->when(function() use ($collection, $key) {
268 268
                 unset($collection[$key]);
269 269
             })
270 270
             ->then()
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.