summaryrefslogtreecommitdiff
path: root/lib/Minz/Helper.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-08-12 21:59:07 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-08-12 21:59:07 +0200
commit93b2a5f240b061103fce5cf563a3cd5cae2c6bfe (patch)
tree94ba803fdc13f6bd091acb06f24c80be4e5e6560 /lib/Minz/Helper.php
parent7900c5e550acafaf0b877635840a8a270eb06078 (diff)
Coding style in Minz_Helper
Diffstat (limited to 'lib/Minz/Helper.php')
-rw-r--r--lib/Minz/Helper.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Minz/Helper.php b/lib/Minz/Helper.php
index 13bfdd93e..8d8b177ae 100644
--- a/lib/Minz/Helper.php
+++ b/lib/Minz/Helper.php
@@ -12,9 +12,9 @@ class Minz_Helper {
* Annule les effets des magic_quotes pour une variable donnée
* @param $var variable à traiter (tableau ou simple variable)
*/
- public static function stripslashes_r ($var) {
- if (is_array ($var)){
- return array_map (array ('Helper', 'stripslashes_r'), $var);
+ public static function stripslashes_r($var) {
+ if (is_array($var)){
+ return array_map(array('Helper', 'stripslashes_r'), $var);
} else {
return stripslashes($var);
}
@@ -24,10 +24,10 @@ class Minz_Helper {
* Wrapper for htmlspecialchars.
* Force UTf-8 value and can be used on array too.
*/
- public static function htmlspecialchars_utf8($p) {
- if (is_array($p)) {
- return array_map('self::htmlspecialchars_utf8', $p);
+ public static function htmlspecialchars_utf8($var) {
+ if (is_array($var)) {
+ return array_map(array('Helper', 'htmlspecialchars_utf8'), $var);
}
- return htmlspecialchars($p, ENT_COMPAT, 'UTF-8');
+ return htmlspecialchars($var, ENT_COMPAT, 'UTF-8');
}
}