From f153be53130cac34e3dae7d3d7e86ded96e90532 Mon Sep 17 00:00:00 2001 From: Stefan Printezis Date: Fri, 11 Nov 2016 00:05:46 +0100 Subject: [PATCH] Added function parameters and corrected 2 function calls --- src/HtmlBuilder.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index cd504f8..e6bc518 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -55,6 +55,10 @@ class HtmlBuilder /** * Convert all applicable characters to HTML entities. + * + * @param string $value + * + * @return string */ public function escapeAll($value) { @@ -395,7 +399,7 @@ class HtmlBuilder if (is_array($value)) { return $this->nestedListing($key, $type, $value); } else { - return '
  • ' . $this->html->escapeAll($value) . '
  • '; + return '
  • ' . $this->escapeAll($value) . '
  • '; } } @@ -457,7 +461,7 @@ class HtmlBuilder } if (! is_null($value)) { - return $key . '="' . $this->html->escapeAll($value) . '"'; + return $key . '="' . $this->escapeAll($value) . '"'; } }