Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
0e02a8a5
Commit
0e02a8a5
authored
Jul 06, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary comments from Input class.
parent
629122a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
input.php
system/input.php
+2
-15
No files found.
system/input.php
View file @
0e02a8a5
...
...
@@ -51,9 +51,6 @@ class Input {
/**
* 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 mixed $default
* @return string
...
...
@@ -71,13 +68,6 @@ class Input {
/**
* 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 mixed $default
* @return array
...
...
@@ -97,11 +87,6 @@ class Input {
/**
* 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
*/
public
static
function
hydrate
()
...
...
@@ -118,6 +103,8 @@ class Input {
case
'PUT'
:
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'
)))
{
static
::
$input
=&
$_POST
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment