Passed
Push — master ( 43a573...ca004c )
by Maxim
08:58 queued 11s
created
src/WS/Utils/Collections/SerialStream.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function reorganize(callable $reorganizer): Stream
54 54
     {
55 55
         $reorganizedCollection = $reorganizer($this->list);
56
-        if (! $reorganizedCollection instanceof Collection) {
56
+        if (!$reorganizedCollection instanceof Collection) {
57 57
             throw new RuntimeException('Result set of reorganizer call must be instance of Collection interface');
58 58
         }
59 59
         $this->list = $reorganizedCollection;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         $values = [];
125 125
         $map = [];
126
-        $this->each(static function ($el) use ($extractor, & $map, & $values) {
126
+        $this->each(static function($el) use ($extractor, & $map, & $values) {
127 127
             $value = $extractor($el);
128 128
             if (!is_scalar($value)) {
129 129
                 throw new RuntimeException('Only scalar value can be as result of sort extractor');
@@ -166,12 +166,12 @@  discard block
 block discarded – undo
166 166
         $size = $this->list->size();
167 167
         /** @var ListSequence $list */
168 168
         $list = $this->list->copy();
169
-        $this->walk(static function ($head, $index) use ($list, $size) {
169
+        $this->walk(static function($head, $index) use ($list, $size) {
170 170
             $tailIndex = $size - $index - 1;
171 171
             $tail = $list->get($tailIndex);
172 172
             $list->set($tail, $index);
173 173
             $list->set($head, $tailIndex);
174
-        }, (int)($size/2));
174
+        }, (int)($size / 2));
175 175
         $this->list = $list;
176 176
 
177 177
         return $this;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     public function limit(int $size): Stream
304 304
     {
305 305
         $newCollection = $this->emptyList();
306
-        $this->walk(static function ($el) use ($newCollection) {
306
+        $this->walk(static function($el) use ($newCollection) {
307 307
             $newCollection->add($el);
308 308
         }, $size);
309 309
 
Please login to merge, or discard this patch.