From aa32e4cf72304564663ed069fa60b1b74e63ec01 Mon Sep 17 00:00:00 2001 From: thybag Date: Sun, 9 Sep 2012 14:24:52 +0100 Subject: [PATCH] Rename static::get_encoding() method to static::encoding() to fit better with style. --- laravel/html.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;