]> git.mxchange.org Git - friendica.git/blobdiff - library/Smarty/libs/plugins/modifiercompiler.upper.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / library / Smarty / libs / plugins / modifiercompiler.upper.php
index f368e37dc3592332a7325d2e695158c34f90909b..52ca4e8ff4fda019d1f5234f3c1209aa1c7dbe38 100644 (file)
@@ -1,30 +1,29 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- *\r
- * @package Smarty\r
- * @subpackage PluginsModifierCompiler\r
- */\r
-\r
-/**\r
- * Smarty upper modifier plugin\r
- * \r
- * Type:     modifier<br>\r
- * Name:     lower<br>\r
- * Purpose:  convert string to uppercase\r
- * \r
- * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual)\r
- * @author Uwe Tews \r
- * @param array $params parameters\r
- * @return string with compiled code\r
- */\r
-function smarty_modifiercompiler_upper($params, $compiler)\r
-{\r
-    if (Smarty::$_MBSTRING) {\r
-        return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')' ;\r
-    }\r
-    // no MBString fallback\r
-    return 'strtoupper(' . $params[0] . ')';\r
-} \r
-\r
-?>
\ No newline at end of file
+<?php
+/**
+ * Smarty plugin
+ *
+ * @package    Smarty
+ * @subpackage PluginsModifierCompiler
+ */
+
+/**
+ * Smarty upper modifier plugin
+ * Type:     modifier<br>
+ * Name:     lower<br>
+ * Purpose:  convert string to uppercase
+ *
+ * @link   http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual)
+ * @author Uwe Tews
+ *
+ * @param array $params parameters
+ *
+ * @return string with compiled code
+ */
+function smarty_modifiercompiler_upper($params)
+{
+    if (Smarty::$_MBSTRING) {
+        return 'mb_strtoupper(' . $params[0] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')';
+    }
+    // no MBString fallback
+    return 'strtoupper(' . $params[0] . ')';
+}