refactoring input class.

This commit is contained in:
Taylor Otwell
2011-08-06 20:45:45 -05:00
parent 5664c9dc92
commit d53ae7457a

View File

@@ -41,10 +41,7 @@ class Input {
*/ */
public static function get($key = null, $default = null) public static function get($key = null, $default = null)
{ {
if (is_null(static::$input)) if (is_null(static::$input)) static::hydrate();
{
static::hydrate();
}
return Arr::get(static::$input, $key, $default); return Arr::get(static::$input, $key, $default);
} }