From d339b6dd454d814ffc323fa9077b70e33339c479 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Wed, 5 Jan 2022 00:52:24 +0100 Subject: [CI] PHPCS: check for opening brace on same line (#4122) * [CI] PHPCS: check for opening brace on same line * make fix-all * Minor comments Co-authored-by: Alexandre Alapetite --- lib/lib_rss.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e347073a4..3ba154209 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -115,19 +115,25 @@ if (function_exists('mb_convert_encoding')) { * @param string $text * @return string */ - function safe_utf8($text) { return mb_convert_encoding($text, 'UTF-8', 'UTF-8'); } + function safe_utf8($text) { + return mb_convert_encoding($text, 'UTF-8', 'UTF-8'); + } } elseif (function_exists('iconv')) { /** * @param string $text * @return string */ - function safe_utf8($text) { return iconv('UTF-8', 'UTF-8//IGNORE', $text); } + function safe_utf8($text) { + return iconv('UTF-8', 'UTF-8//IGNORE', $text); + } } else { /** * @param string $text * @return string */ - function safe_utf8($text) { return $text; } + function safe_utf8($text) { + return $text; + } } /** -- cgit v1.2.3