Skip to content

Commit 589b86f

Browse files
committed
remove unnecessary code in input class.
1 parent e55cf31 commit 589b86f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

laravel/input.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ public static function get($key = null, $default = null)
8989
*/
9090
public static function query($key = null, $default = null)
9191
{
92-
if (is_null($key))
93-
{
94-
return Request::foundation()->query->all();
95-
}
96-
9792
return array_get(Request::foundation()->query->all(), $key, $default);
9893
}
9994

@@ -163,11 +158,6 @@ public static function had($key)
163158
*/
164159
public static function old($key = null, $default = null)
165160
{
166-
if (is_null($key))
167-
{
168-
return Session::get(Input::old_input, array());
169-
}
170-
171161
return array_get(Session::get(Input::old_input, array()), $key, $default);
172162
}
173163

@@ -185,11 +175,6 @@ public static function old($key = null, $default = null)
185175
*/
186176
public static function file($key = null, $default = null)
187177
{
188-
if (is_null($key))
189-
{
190-
return $_FILES;
191-
}
192-
193178
return array_get($_FILES, $key, $default);
194179
}
195180

0 commit comments

Comments
 (0)