From f1584033b5af945b470533b466b81a789d532034 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 20 Aug 2017 19:20:55 +0200 Subject: [PATCH] Html: simplified code --- src/Utils/Html.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Utils/Html.php b/src/Utils/Html.php index cd257e3c4..b29bddb28 100644 --- a/src/Utils/Html.php +++ b/src/Utils/Html.php @@ -325,15 +325,7 @@ public function setHtml($html) */ public function getHtml() { - $s = ''; - foreach ($this->children as $child) { - if (is_object($child)) { - $s .= $child->render(); - } else { - $s .= $child; - } - } - return $s; + return implode('', $this->children); }