Passed
Push — version-4 ( db79e6...123e06 )
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/Functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         if (is_double($value)) {
11 11
             $str = \strval($value);
12 12
             if (strlen($str) == 1) {
13
-                return sprintf("%1\$.1f",$value);
13
+                return sprintf("%1\$.1f", $value);
14 14
             }
15 15
             return \strval($value);
16 16
         }
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
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     public function flatten(): ListInterface
152 152
     {
153 153
         $flattenedArray = [];
154
-        array_walk_recursive($this->array, function ($item) use (&$flattenedArray) {
154
+        array_walk_recursive($this->array, function($item) use (&$flattenedArray) {
155 155
             $flattenedArray[] = $item;
156 156
         });
157 157
         return listOf(...$flattenedArray);
@@ -176,15 +176,15 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function joinToString(string $delimiter, string $prefix = null, string $suffix = null): string
178 178
     {
179
-        $result = implode($delimiter, $this->map(function ($item) {
179
+        $result = implode($delimiter, $this->map(function($item) {
180 180
             assertStringable($item, "Elements in list must be convertible to string in order to use joinToString.");
181 181
             return strval($item);
182 182
         })->toArray());
183 183
         if ($prefix !== null) {
184
-            $result = $prefix . $result;
184
+            $result = $prefix.$result;
185 185
         }
186 186
         if ($suffix !== null) {
187
-            $result = $result . $suffix;
187
+            $result = $result.$suffix;
188 188
         }
189 189
         return $result;
190 190
     }
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     /**
321 321
      * @inheritDoc
322 322
      */
323
-    public function forEach(callable $action): void
323
+    public function forEach (callable $action): void
324 324
     {
325 325
         foreach ($this->array as $element) {
326 326
             $action($element);
Please login to merge, or discard this patch.
src/Assert/Functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         if (is_scalar($object)) {
102 102
             return;
103 103
         }
104
-        if (method_exists($object , '__toString')) {
104
+        if (method_exists($object, '__toString')) {
105 105
             return;
106 106
         }
107 107
         if ($object instanceof Comparable) {
Please login to merge, or discard this patch.