Test Failed
Branch master (7df10c)
by Maxim
09:20 queued 06:59
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 $count): 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
         }, $count);
309 309
 
Please login to merge, or discard this patch.
src/WS/Utils/Collections/Iterator/IteratorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     public static function directSequence($length): Iterator
11 11
     {
12 12
         $current = 0;
13
-        return new CallbackIterator(static function () use (& $current, $length) {
13
+        return new CallbackIterator(static function() use (& $current, $length) {
14 14
             if ($current === $length) {
15 15
                 return (new IterateResult())->setAsRunOut();
16 16
             }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public static function reverseSequence($length): Iterator
23 23
     {
24 24
         $current = $length - 1;
25
-        return new CallbackIterator(static function () use (& $current) {
25
+        return new CallbackIterator(static function() use (& $current) {
26 26
             if ($current === -1) {
27 27
                 return (new IterateResult())->setAsRunOut();
28 28
             }
Please login to merge, or discard this patch.