mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 12:40:11 +02:00
improving the render to show the tree with indentations
This commit is contained in:
@@ -6,6 +6,6 @@ class TextElement extends FormElement
|
||||
{
|
||||
public function render($indent = 0)
|
||||
{
|
||||
return 'this is a text element';
|
||||
return str_repeat(' ', $indent) . 'this is a text element';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user