Evening out some comments like a crazy person.

This commit is contained in:
Taylor Otwell committed 2013-04-06 20:07:10 -05:00
1 parent 8d46093df3
commit 3680cddb2f
1 file changed
+5 -5
+5 -5
View File
@@ -96,16 +96,16 @@ class FormBuilder {
// We need to extract the proper method from the attributes. If the method is // We need to extract the proper method from the attributes. If the method is
// something other than GET or POST we'll use POST since we will spoof the // something other than GET or POST we'll use POST since we will spoof the
// actual method since forms don't support PUT, PATCH or DELETE as native HTML. // actual method since forms don't support the reserved methods in HTML.
$attributes['method'] = $this->getMethod($method); $attributes['method'] = $this->getMethod($method);
$attributes['action'] = $this->getAction($options); $attributes['action'] = $this->getAction($options);
$attributes['accept-charset'] = 'UTF-8'; $attributes['accept-charset'] = 'UTF-8';
// If the method is PUT, PATCH or DELETE, we will need to add a spoofer hidden // If the method is PUT, PATCH or DELETE we will need to add a spoofer hidden
// field that will instruct this Symfony request to pretend that the method is // field that will instruct the Symfony request to pretend the method is a
// a different method than it actually is, for convenience from the forms. // different method than it actually is, for convenience from the forms.
$append = $this->getAppendage($method); $append = $this->getAppendage($method);
if (isset($options['files']) and $options['files']) if (isset($options['files']) and $options['files'])
@@ -115,7 +115,7 @@ class FormBuilder {
// Finally we're ready to create the final form HTML field. We will attribute // Finally we're ready to create the final form HTML field. We will attribute
// format the array of attributes. We will also add on the appendage which // format the array of attributes. We will also add on the appendage which
// is used to spoof the requests for PUT, PATCH and DELETE requests to the app. // is used to spoof requests for the PUT, PATCH, etc. methods on forms.
$attributes = array_merge( $attributes = array_merge(
$attributes, array_except($options, $this->reserved) $attributes, array_except($options, $this->reserved)