From ccb6bc6b8ab59b04c2f85fbff0b0d3ee9062df93 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 21 Nov 2011 22:33:09 -0600 Subject: [PATCH] refactoring the input class. --- laravel/input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/input.php b/laravel/input.php index 8cc31de7..d475bd90 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -38,7 +38,7 @@ public static function all() */ public static function has($key) { - return ( ! is_null(static::get($key)) and trim((string) static::get($key)) !== ''); + return trim((string) static::get($key)) !== ''; } /**