From af4403bac5e82c79eec24201a57d74a70dcbe8b3 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 6 Aug 2011 20:47:20 -0500 Subject: [PATCH] refactor messages class. --- system/messages.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/messages.php b/system/messages.php index f6fe0f85..43fa8b37 100644 --- a/system/messages.php +++ b/system/messages.php @@ -70,10 +70,7 @@ public function first($key, $format = ':message') */ public function get($key = null, $format = ':message') { - if (is_null($key)) - { - return $this->all($format); - } + if (is_null($key)) return $this->all($format); return (array_key_exists($key, $this->messages)) ? $this->format($this->messages[$key], $format) : array(); }