From ce86e7401b59e3f970105c347b5f6a8e31a82733 Mon Sep 17 00:00:00 2001 From: geraldaistleitner Date: Wed, 14 Sep 2016 09:17:03 +0200 Subject: [PATCH] Update HtmlUtility.php added static keyword to methods to remove deprecation notice --- Classes/Utility/HtmlUtility.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Classes/Utility/HtmlUtility.php b/Classes/Utility/HtmlUtility.php index a02f8ce..58a6207 100644 --- a/Classes/Utility/HtmlUtility.php +++ b/Classes/Utility/HtmlUtility.php @@ -34,7 +34,7 @@ class HtmlUtility * @param string $content: the input content * @return string the input content with HTML comment removed */ - public function removeHTMLComments($content) + public static function removeHTMLComments($content) { $result = preg_replace('/[\t\v\n\r\f]*/', '', $content); return $result; @@ -46,7 +46,7 @@ public function removeHTMLComments($content) * @param string $content: the input content * @return string the input content with HTML br tags replaced */ - public function replaceHTMLBr($content) + public static function replaceHTMLBr($content) { $result = preg_replace('//', LF, $content); return $result; @@ -58,7 +58,7 @@ public function replaceHTMLBr($content) * @param string $content: the input content * @return string the input content with HTML tags removed */ - public function removeHtmlTags($content) + public static function removeHtmlTags($content) { // Preserve constructs $result = str_replace('