@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | public function reorganize(callable $reorganizer): Stream |
| 53 | 53 | { |
| 54 | 54 | $reorganizedCollection = $reorganizer($this->list->copy()); |
| 55 | - if (! $reorganizedCollection instanceof Collection) { |
|
| 55 | + if (!$reorganizedCollection instanceof Collection) { |
|
| 56 | 56 | throw new RuntimeException('Result set of reorganizer call must be instance of Collection interface'); |
| 57 | 57 | } |
| 58 | 58 | $this->list = $reorganizedCollection; |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | { |
| 123 | 123 | $values = []; |
| 124 | 124 | $map = []; |
| 125 | - $this->each(static function ($el) use ($extractor, & $map, & $values) { |
|
| 125 | + $this->each(static function($el) use ($extractor, & $map, & $values) { |
|
| 126 | 126 | $value = $extractor($el); |
| 127 | 127 | if (!is_scalar($value)) { |
| 128 | 128 | throw new RuntimeException('Only scalar value can be as result of sort extractor'); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function findAny() |
| 184 | 184 | { |
| 185 | - $size = $this->list->size(); |
|
| 185 | + $size = $this->list->size(); |
|
| 186 | 186 | if ($size === 0) { |
| 187 | 187 | return null; |
| 188 | 188 | } |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | public function limit(int $size): Stream |
| 308 | 308 | { |
| 309 | 309 | $newCollection = $this->emptyList(); |
| 310 | - $this->walk(static function ($el) use ($newCollection) { |
|
| 310 | + $this->walk(static function($el) use ($newCollection) { |
|
| 311 | 311 | $newCollection->add($el); |
| 312 | 312 | }, $size); |
| 313 | 313 | |