@@ -188,7 +188,7 @@ |
||
| 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 | |
@@ -120,7 +120,7 @@ |
||
| 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) |
@@ -60,7 +60,7 @@ discard block |
||
| 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 |
||
| 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 | ) |
@@ -165,7 +165,7 @@ |
||
| 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() |
@@ -153,7 +153,7 @@ discard block |
||
| 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 |
||
| 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() |
@@ -81,7 +81,7 @@ |
||
| 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 | ; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $criteria = new Comparator(); |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - uasort($this->elements, function ($a, $b) use ($criteria) { |
|
| 138 | + uasort($this->elements, function($a, $b) use ($criteria) { |
|
| 139 | 139 | return $criteria->compare($a, $b); |
| 140 | 140 | }); |
| 141 | 141 | } |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | $criteria = new Comparator(); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - uksort($this->elements, function ($a, $b) use ($criteria) { |
|
| 125 | + uksort($this->elements, function($a, $b) use ($criteria) { |
|
| 126 | 126 | return $criteria->compare($a, $b); |
| 127 | 127 | }); |
| 128 | 128 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 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 |
||
| 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() |