Remove unnecessary comments from Input class.
This commit is contained in:
parent
629122a5a9
commit
0e02a8a53d
|
@ -51,9 +51,6 @@ public static function had($key)
|
||||||
/**
|
/**
|
||||||
* Get input data from the previous request.
|
* Get input data from the previous request.
|
||||||
*
|
*
|
||||||
* Since input data is flashed to the session, a session driver must be specified
|
|
||||||
* in order to use this method.
|
|
||||||
*
|
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $default
|
* @param mixed $default
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -71,13 +68,6 @@ public static function old($key = null, $default = null)
|
||||||
/**
|
/**
|
||||||
* Get an item from the uploaded file data.
|
* Get an item from the uploaded file data.
|
||||||
*
|
*
|
||||||
* If a "dot" is present in the key. A specific element will be returned from
|
|
||||||
* the specified file array.
|
|
||||||
*
|
|
||||||
* Example: Input::file('picture.size');
|
|
||||||
*
|
|
||||||
* The statement above will return the value of $_FILES['picture']['size'].
|
|
||||||
*
|
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $default
|
* @param mixed $default
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -97,11 +87,6 @@ public static function file($key = null, $default = null)
|
||||||
/**
|
/**
|
||||||
* Hydrate the input data for the request.
|
* Hydrate the input data for the request.
|
||||||
*
|
*
|
||||||
* Typically, browsers do not support PUT and DELETE methods on HTML forms. So, they are simulated
|
|
||||||
* by Laravel using a hidden POST element. If the request method is being "spoofed", the POST
|
|
||||||
* array will be moved into the PUT / DELETE array. True "PUT" or "DELETE" rqeuests will be read
|
|
||||||
* from the php://input file.
|
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function hydrate()
|
public static function hydrate()
|
||||||
|
@ -118,6 +103,8 @@ public static function hydrate()
|
||||||
|
|
||||||
case 'PUT':
|
case 'PUT':
|
||||||
case 'DELETE':
|
case 'DELETE':
|
||||||
|
// The request method can be spoofed by specifying a "REQUEST_METHOD" in the $_POST array.
|
||||||
|
// If the method is being spoofed, the $_POST array will be considered the input.
|
||||||
if (isset($_POST['REQUEST_METHOD']) and in_array($_POST['REQUEST_METHOD'], array('PUT', 'DELETE')))
|
if (isset($_POST['REQUEST_METHOD']) and in_array($_POST['REQUEST_METHOD'], array('PUT', 'DELETE')))
|
||||||
{
|
{
|
||||||
static::$input =& $_POST;
|
static::$input =& $_POST;
|
||||||
|
|
Loading…
Reference in New Issue