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
dc01b3c2
Commit
dc01b3c2
authored
Jun 26, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added default value to Input::file and defaulted Validator::make.
parent
9f7da5cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
input.php
system/input.php
+1
-1
validator.php
system/validator.php
+2
-2
No files found.
system/input.php
View file @
dc01b3c2
...
...
@@ -76,7 +76,7 @@ class Input {
* @param mixed $default
* @return array
*/
public
static
function
file
(
$key
,
$default
=
null
)
public
static
function
file
(
$key
=
null
,
$default
=
null
)
{
return
Arr
::
get
(
$_FILES
,
$key
,
$default
);
}
...
...
system/validator.php
View file @
dc01b3c2
...
...
@@ -29,7 +29,7 @@ class Validator {
* @param mixed $target
* @return void
*/
public
function
__construct
(
$target
)
public
function
__construct
(
$target
=
array
()
)
{
// ---------------------------------------------------------
// If the source is an Eloquent model, use the model's
...
...
@@ -44,7 +44,7 @@ class Validator {
* @param mixed $target
* @return Validator
*/
public
static
function
of
(
$target
)
public
static
function
make
(
$target
=
array
()
)
{
return
new
static
(
$target
);
}
...
...
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