Rename static::get_encoding() method to static::encoding() to fit better with style.

This commit is contained in:
thybag 2012-09-09 14:24:52 +01:00
parent f55bb85c6f
commit aa32e4cf72
1 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ public static function macro($name, $macro)
*/ */
public static function entities($value) public static function entities($value)
{ {
return htmlentities($value, ENT_QUOTES, static::get_encoding(), false); return htmlentities($value, ENT_QUOTES, static::encoding(), false);
} }
/** /**
@ -49,7 +49,7 @@ public static function entities($value)
*/ */
public static function decode($value) public static function decode($value)
{ {
return html_entity_decode($value, ENT_QUOTES, static::get_encoding()); return html_entity_decode($value, ENT_QUOTES, static::encoding());
} }
/** /**
@ -62,7 +62,7 @@ public static function decode($value)
*/ */
public static function specialchars($value) public static function specialchars($value)
{ {
return htmlspecialchars($value, ENT_QUOTES, static::get_encoding(), false); return htmlspecialchars($value, ENT_QUOTES, static::encoding(), false);
} }
/** /**
@ -419,7 +419,7 @@ protected static function obfuscate($value)
* *
* @return string * @return string
*/ */
protected static function get_encoding() protected static function encoding()
{ {
if(static::$encoding===null) static::$encoding = Config::get('application.encoding'); if(static::$encoding===null) static::$encoding = Config::get('application.encoding');