Passed
Pull Request — master (#14)
by Raoul
05:24 queued 01:57
created
src/Ast/NormalElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@
 block discarded – undo
51 51
         $indentChild = new Text("\n" . str_repeat("    ", $level + 1));
52 52
         $indentClosingTag = new Text("\n" . str_repeat("    ", $level));
53 53
         $children = array_merge(array_reduce($this->childNodes, function ($children, $child) use ($level, $indentChild) {
54
-            return array_merge($children, [$indentChild, $child->beautify($level + 1)]);
55
-        }, []), [$indentClosingTag]);
54
+            return array_merge($children, [ $indentChild, $child->beautify($level + 1) ]);
55
+        }, [ ]), [ $indentClosingTag ]);
56 56
         return new NormalElement($this->localName, $this->attributes, $children);
57 57
     }
58 58
 
Please login to merge, or discard this patch.