Commit af4403ba authored by Taylor Otwell's avatar Taylor Otwell

refactor messages class.

parent 8ddfdd9e
......@@ -70,10 +70,7 @@ class Messages {
*/
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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment