@@ -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 | |
@@ -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 | ) |
@@ -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 | ; |
@@ -157,7 +157,7 @@ discard block |
||
| 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 |
||
| 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() |
@@ -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() |
@@ -65,7 +65,7 @@ |
||
| 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 | ; |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | $criteria = new Comparator(); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - uasort($this->elements, function ($a, $b) use ($criteria) { |
|
| 135 | + uasort($this->elements, function($a, $b) use ($criteria) { |
|
| 136 | 136 | return $criteria->compare($a, $b); |
| 137 | 137 | }); |
| 138 | 138 | } |
@@ -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 | } |