Commit ccb6bc6b by Taylor Otwell

refactoring the input class.

parent 937441d3
...@@ -38,7 +38,7 @@ class Input { ...@@ -38,7 +38,7 @@ class Input {
*/ */
public static function has($key) public static function has($key)
{ {
return ( ! is_null(static::get($key)) and trim((string) static::get($key)) !== ''); return trim((string) static::get($key)) !== '';
} }
/** /**
......
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