diff --git a/laravel/html.php b/laravel/html.php index 7a602de9..157ef48e 100644 --- a/laravel/html.php +++ b/laravel/html.php @@ -38,7 +38,7 @@ public static function macro($name, $macro) */ 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) { - 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) { - return htmlspecialchars($value, ENT_QUOTES, static::get_encoding(), false); + return htmlspecialchars($value, ENT_QUOTES, static::encoding(), false); } /** @@ -419,8 +419,8 @@ protected static function obfuscate($value) * * @return string */ - protected static function get_encoding() - { + protected static function encoding() + { if(static::$encoding===null) static::$encoding = Config::get('application.encoding'); return static::$encoding;