Passed
Push — version-4 ( 1126f5...eb245d )
by Sebastian
02:21
created
src/Map/MapInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
      * @param callable $action f(entry: Pair) -> mixed|void
203 203
      * @return void
204 204
      */
205
-    public function forEach(callable $action): void;
205
+    public function forEach (callable $action): void;
206 206
 
207 207
     /**
208 208
      * Returns a List containing all key-value pairs.
Please login to merge, or discard this patch.
src/Lists/ListInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
265 265
      * @param callable $action f(element: mixed) -> void|mixed
266 266
      * @return void
267 267
      */
268
-    public function forEach(callable $action): void;
268
+    public function forEach (callable $action): void;
269 269
 
270 270
     /**
271 271
      * Returns an element at the given index or the result of calling the defaultValue
Please login to merge, or discard this patch.
src/Map/MapTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getEntries(): ListInterface
40 40
     {
41
-        return listOf(...array_map(function (string $key, $value) {
41
+        return listOf(...array_map(function(string $key, $value) {
42 42
             return pair($key, $value);
43 43
         }, array_keys($this->array), $this->array));
44 44
 
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * @param callable $action f(entry: Pair<scalar, mixed>) -> mixed|void
315 315
      * @return void
316 316
      */
317
-    public function forEach(callable $action): void
317
+    public function forEach (callable $action): void
318 318
     {
319 319
         foreach ($this->array as $key => $value) {
320 320
             $action(pair($key, $value));
Please login to merge, or discard this patch.
src/Lists/ArrayListTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     public function flatten(): ListInterface
170 170
     {
171 171
         $flattenedArray = [];
172
-        array_walk_recursive($this->array, function ($item) use (&$flattenedArray) {
172
+        array_walk_recursive($this->array, function($item) use (&$flattenedArray) {
173 173
             $flattenedArray[] = $item;
174 174
         });
175 175
         return listOf(...$flattenedArray);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function joinToString(string $delimiter, string $prefix = null, string $suffix = null): string
192 192
     {
193
-        $result = implode($delimiter, $this->map(function ($item) {
193
+        $result = implode($delimiter, $this->map(function($item) {
194 194
             assertStringable(
195 195
                 $item,
196 196
                 "All elements in the list must be convertible to string in order to use joinToString."
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
             return strval($item);
199 199
         })->toArray());
200 200
         if ($prefix !== null) {
201
-            $result = $prefix . $result;
201
+            $result = $prefix.$result;
202 202
         }
203 203
         if ($suffix !== null) {
204
-            $result = $result . $suffix;
204
+            $result = $result.$suffix;
205 205
         }
206 206
         return $result;
207 207
     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     /**
340 340
      * @inheritDoc
341 341
      */
342
-    public function forEach(callable $action): void
342
+    public function forEach (callable $action): void
343 343
     {
344 344
         foreach ($this->array as $element) {
345 345
             $action($element);
Please login to merge, or discard this patch.
src/Common/Functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
         if (is_double($value)) {
14 14
             $str = \strval($value);
15 15
             if (strlen($str) == 1) {
16
-                return sprintf("%1\$.1f",$value);
16
+                return sprintf("%1\$.1f", $value);
17 17
             }
18 18
             return \strval($value);
19 19
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         }
78 78
         if (isStringable($needle)) {
79 79
             foreach ($array as $item) {
80
-                if (strcmp((string)$needle, (string) $item) === 0) {
80
+                if (strcmp((string) $needle, (string) $item) === 0) {
81 81
                     return true;
82 82
                 }
83 83
             }
Please login to merge, or discard this patch.