From 589b86ff3eb61fc6044e73bcac1f0b313479c12e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 24 Apr 2012 13:41:19 -0500 Subject: [PATCH] remove unnecessary code in input class. --- laravel/input.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/laravel/input.php b/laravel/input.php index 79dced6f..a44bd85b 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -89,11 +89,6 @@ class Input { */ public static function query($key = null, $default = null) { - if (is_null($key)) - { - return Request::foundation()->query->all(); - } - return array_get(Request::foundation()->query->all(), $key, $default); } @@ -163,11 +158,6 @@ class Input { */ public static function old($key = null, $default = null) { - if (is_null($key)) - { - return Session::get(Input::old_input, array()); - } - return array_get(Session::get(Input::old_input, array()), $key, $default); } @@ -185,11 +175,6 @@ class Input { */ public static function file($key = null, $default = null) { - if (is_null($key)) - { - return $_FILES; - } - return array_get($_FILES, $key, $default); }