Completed
Branch master (525dd0)
by Randy
03:57 queued 01:32
created
src/Iterator.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 
191 191
     /**
192 192
      * @param callable $callback
193
-     * @param null     $initial
193
+     * @param integer     $initial
194 194
      *
195 195
      * @return mixed
196 196
      */
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
     }
347 347
 
348 348
     /**
349
-     * @param $value
349
+     * @param string $value
350 350
      *
351 351
      * @return Iterator
352 352
      */
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-     * @param $value
359
+     * @param string $value
360 360
      *
361 361
      * @return Iterator
362 362
      */
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
     }
367 367
 
368 368
     /**
369
-     * @param $value
369
+     * @param string $value
370 370
      *
371 371
      * @return mixed
372 372
      */
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     }
377 377
 
378 378
     /**
379
-     * @param $value
379
+     * @param string $value
380 380
      *
381 381
      * @return Iterator
382 382
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      */
325 325
     public function from($value): self
326 326
     {
327
-        $amount = $this->countUntil(function ($val) use ($value) {
327
+        $amount = $this->countUntil(function($val) use ($value) {
328 328
             return $val === $value;
329 329
         });
330 330
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      */
339 339
     public function until($value): self
340 340
     {
341
-        $amount = $this->countUntil(function ($val) use ($value) {
341
+        $amount = $this->countUntil(function($val) use ($value) {
342 342
             return $val === $value;
343 343
         });
344 344
 
Please login to merge, or discard this patch.
tests/IteratorTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
     {
117 117
         $it = iter([6, 7, 8]);
118 118
 
119
-        $sum1 = function ($sum, int $a) {
119
+        $sum1 = function($sum, int $a) {
120 120
             return $sum + $a;
121 121
         };
122 122
 
123
-        $sum2 = function (int $sum, int $a) {
123
+        $sum2 = function(int $sum, int $a) {
124 124
             return $sum + $a;
125 125
         };
126 126
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function testTakeWhile()
132 132
     {
133
-        $belowTen = function (int $item) {
133
+        $belowTen = function(int $item) {
134 134
             return $item < 10;
135 135
         };
136 136
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     public function testSkipWhile()
141 141
     {
142
-        $belowTen = function (int $item) {
142
+        $belowTen = function(int $item) {
143 143
             return $item < 10;
144 144
         };
145 145
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
     public function testAll()
190 190
     {
191
-        $positive = function (int $item) {
191
+        $positive = function(int $item) {
192 192
             return $item >= 0;
193 193
         };
194 194
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
     public function testAny()
200 200
     {
201
-        $positive = function (int $item) {
201
+        $positive = function(int $item) {
202 202
             return $item > 0;
203 203
         };
204 204
 
Please login to merge, or discard this patch.