Passed
Push — master ( c27fc8...18e353 )
by Smoren
02:07
created
src/functions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  */
17 17
 function xrange(int $start, ?int $size = null, int $step = 1): Range
18 18
 {
19
-    if($size === null) {
19
+    if ($size === null) {
20 20
         [$start, $size] = [0, $start];
21 21
     }
22 22
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 {
39 39
     $result = new IndexedArray();
40 40
 
41
-    foreach($collection as $item) {
41
+    foreach ($collection as $item) {
42 42
         $result[] = $mapper($item);
43 43
     }
44 44
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 {
60 60
     $result = new IndexedArray();
61 61
 
62
-    foreach($collection as $item) {
63
-        if($filter($item)) {
62
+    foreach ($collection as $item) {
63
+        if ($filter($item)) {
64 64
             $result[] = $item;
65 65
         }
66 66
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 {
85 85
     $carry = $initialValue;
86 86
 
87
-    foreach($collection as $item) {
87
+    foreach ($collection as $item) {
88 88
         $carry = $reducer($carry, $item);
89 89
     }
90 90
 
Please login to merge, or discard this patch.