diff options
| author | 2022-01-05 00:52:24 +0100 | |
|---|---|---|
| committer | 2022-01-05 00:52:24 +0100 | |
| commit | d339b6dd454d814ffc323fa9077b70e33339c479 (patch) | |
| tree | bf82e2b4beda3958502465ef76c223175a978afd /lib/lib_rss.php | |
| parent | a6ea90e58b807d18fff601135e3e697b38895ca1 (diff) | |
[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 <alexandre@alapetite.fr>
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 12 |
1 files changed, 9 insertions, 3 deletions
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; + } } /** |
