From f02e7dc4ca0c9f3dd16c8dc49324854090d8d443 Mon Sep 17 00:00:00 2001
From: Alex Andrews <a.andrews@kent.ac.uk>
Date: Mon, 10 Sep 2012 12:27:50 +0100
Subject: [PATCH] Reformatted return

Changed the return of the method in line with suggestions from @JoostK.
---
 laravel/html.php | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/laravel/html.php b/laravel/html.php
index 157ef48..3d7f775 100644
--- a/laravel/html.php
+++ b/laravel/html.php
@@ -420,10 +420,8 @@ class HTML {
 	 * @return string
 	 */
 	protected static function encoding()
-	{	
-		if(static::$encoding===null) static::$encoding = Config::get('application.encoding');
-
-		return static::$encoding;
+	{
+		return static::$encoding ?: static::$encoding = Config::get('application.encoding');
 	}
 
 	/**
--
libgit2 0.26.0