aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Frans de Jonge <fransdejonge@gmail.com> 2022-01-05 00:52:24 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-05 00:52:24 +0100
commitd339b6dd454d814ffc323fa9077b70e33339c479 (patch)
treebf82e2b4beda3958502465ef76c223175a978afd /lib/lib_rss.php
parenta6ea90e58b807d18fff601135e3e697b38895ca1 (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.php12
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;
+ }
}
/**