From 963c6934bb4be5706bc1d18317736a34e12d46c8 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 24 Feb 2019 08:19:48 +0100 Subject: [PATCH] PSR2 adjustments for SafeFN the renamed methods were not used in any known plugin --- inc/SafeFN.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/SafeFN.class.php b/inc/SafeFN.class.php index b9e4a2b2a..681b555f4 100644 --- a/inc/SafeFN.class.php +++ b/inc/SafeFN.class.php @@ -45,7 +45,7 @@ class SafeFN { * @author Christopher Smith */ public static function encode($filename) { - return self::unicode_to_safe(utf8_to_unicode($filename)); + return self::unicodeToSafe(utf8_to_unicode($filename)); } /** @@ -74,14 +74,14 @@ class SafeFN { * @author Christopher Smith */ public static function decode($filename) { - return unicode_to_utf8(self::safe_to_unicode(strtolower($filename))); + return unicode_to_utf8(self::safeToUnicode(strtolower($filename))); } - public static function validate_printable_utf8($printable_utf8) { + public static function validatePrintableUtf8($printable_utf8) { return !preg_match('#[\x01-\x1f]#',$printable_utf8); } - public static function validate_safe($safe) { + public static function validateSafe($safe) { return !preg_match('#[^'.self::$plain.self::$post_indicator.self::$pre_indicator.']#',$safe); } @@ -93,7 +93,7 @@ class SafeFN { * * @author Christopher Smith */ - private static function unicode_to_safe($unicode) { + private static function unicodeToSafe($unicode) { $safe = ''; $converted = false; @@ -126,7 +126,7 @@ class SafeFN { * * @author Christopher Smith */ - private static function safe_to_unicode($safe) { + private static function safeToUnicode($safe) { $unicode = array(); $split = preg_split('#(?=['.self::$post_indicator.self::$pre_indicator.'])#',$safe,-1,PREG_SPLIT_NO_EMPTY); -- 2.11.4.GIT