From 667f00872cb695a66caa1b7c1cd950f74499873d Mon Sep 17 00:00:00 2001 From: Tim Otte Date: Tue, 3 Mar 2020 10:33:26 +0100 Subject: [PATCH] Fixed lint errors --- htdocs/core/class/HtmlToOdtConverter.class.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/HtmlToOdtConverter.class.php b/htdocs/core/class/HtmlToOdtConverter.class.php index e9f210eb889..4617a94ea1d 100644 --- a/htdocs/core/class/HtmlToOdtConverter.class.php +++ b/htdocs/core/class/HtmlToOdtConverter.class.php @@ -8,7 +8,7 @@ class HtmlToOdtConverter /** * Converts a string with html inside into an odt compatible string - * @param string The text to convert + * @param string $htmlText The text to convert * @return array */ public static function htmlToOdt($htmlText) @@ -60,6 +60,8 @@ class HtmlToOdtConverter * Replaces html tags in with odt tags and returns an odt string * @param array $tags An array with html tags generated by the getDataFromHtml() function * @param array $customStyles An array of style defenitions that should be included inside the odt file + * @param array $fontDeclarations An array of font declarations that should be included inside the odt file + * @return string */ private static function replaceHtmlWithOdtTag($tags, &$customStyles, &$fontDeclarations) { @@ -147,6 +149,7 @@ class HtmlToOdtConverter /** * Checks if the given text is a html string * @param string $text The text to check + * @return bool */ public static function isHtmlTag($text) { @@ -156,6 +159,7 @@ class HtmlToOdtConverter /** * Checks if the given text includes a html string * @param string $text The text to check + * @return bool */ public static function hasHtmlTag($text) { @@ -166,6 +170,7 @@ class HtmlToOdtConverter /** * Returns an array of html elements * @param string $html A string with html tags + * @return array */ private static function getDataFromHtml($html) { @@ -190,7 +195,8 @@ class HtmlToOdtConverter $explodedAttributes = array_filter($explodedAttributes[0]); $attributes = array(); // Store each attribute with its name in the $attributes array - for ($i=0; $i