Passed
Push — version-4 ( d98195...afc63d )
by Sebastian
02:40
created
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.