|
@@ -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.