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
8f103cde
Commit
8f103cde
authored
Mar 21, 2012
by
Colin Viebrock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove PHP_EOL, fixes #430.
Signed-off-by:
Colin Viebrock
<
colin@viebrock.ca
>
parent
f16ac134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
form.php
laravel/form.php
+7
-7
No files found.
laravel/form.php
View file @
8f103cde
...
@@ -59,7 +59,7 @@ class Form {
...
@@ -59,7 +59,7 @@ class Form {
$append
=
static
::
hidden
(
Request
::
spoofer
,
$method
);
$append
=
static
::
hidden
(
Request
::
spoofer
,
$method
);
}
}
return
'<form'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
$append
.
PHP_EOL
;
return
'<form'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
$append
;
}
}
/**
/**
...
@@ -172,7 +172,7 @@ class Form {
...
@@ -172,7 +172,7 @@ class Form {
$value
=
HTML
::
entities
(
$value
);
$value
=
HTML
::
entities
(
$value
);
return
'<label for="'
.
$name
.
'"'
.
$attributes
.
'>'
.
$value
.
'</label>'
.
PHP_EOL
;
return
'<label for="'
.
$name
.
'"'
.
$attributes
.
'>'
.
$value
.
'</label>'
;
}
}
/**
/**
...
@@ -200,7 +200,7 @@ class Form {
...
@@ -200,7 +200,7 @@ class Form {
$attributes
=
array_merge
(
$attributes
,
compact
(
'type'
,
'name'
,
'value'
,
'id'
));
$attributes
=
array_merge
(
$attributes
,
compact
(
'type'
,
'name'
,
'value'
,
'id'
));
return
'<input'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
PHP_EOL
;
return
'<input'
.
HTML
::
attributes
(
$attributes
)
.
'>'
;
}
}
/**
/**
...
@@ -349,7 +349,7 @@ class Form {
...
@@ -349,7 +349,7 @@ class Form {
if
(
!
isset
(
$attributes
[
'cols'
]))
$attributes
[
'cols'
]
=
50
;
if
(
!
isset
(
$attributes
[
'cols'
]))
$attributes
[
'cols'
]
=
50
;
return
'<textarea'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
HTML
::
entities
(
$value
)
.
'</textarea>'
.
PHP_EOL
;
return
'<textarea'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
HTML
::
entities
(
$value
)
.
'</textarea>'
;
}
}
/**
/**
...
@@ -382,7 +382,7 @@ class Form {
...
@@ -382,7 +382,7 @@ class Form {
$html
[]
=
static
::
option
(
$value
,
$display
,
$selected
);
$html
[]
=
static
::
option
(
$value
,
$display
,
$selected
);
}
}
return
'<select'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
implode
(
''
,
$html
)
.
'</select>'
.
PHP_EOL
;
return
'<select'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
implode
(
''
,
$html
)
.
'</select>'
;
}
}
/**
/**
...
@@ -527,7 +527,7 @@ class Form {
...
@@ -527,7 +527,7 @@ class Form {
*/
*/
public
static
function
button
(
$value
,
$attributes
=
array
())
public
static
function
button
(
$value
,
$attributes
=
array
())
{
{
return
'<button'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
HTML
::
entities
(
$value
)
.
'</button>'
.
PHP_EOL
;
return
'<button'
.
HTML
::
attributes
(
$attributes
)
.
'>'
.
HTML
::
entities
(
$value
)
.
'</button>'
;
}
}
/**
/**
...
@@ -554,4 +554,4 @@ class Form {
...
@@ -554,4 +554,4 @@ class Form {
}
}
}
}
}
}
\ No newline at end of file
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