From 3680cddb2f062de92842bbf783890c22cc99da8a Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 6 Apr 2013 20:07:10 -0500 Subject: [PATCH] Evening out some comments like a crazy person. --- FormBuilder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FormBuilder.php b/FormBuilder.php index 579db61..911cc3f 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -96,16 +96,16 @@ class FormBuilder { // 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 - // 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['action'] = $this->getAction($options); $attributes['accept-charset'] = 'UTF-8'; - // 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 - // a different method than it actually is, for convenience from the forms. + // If the method is PUT, PATCH or DELETE we will need to add a spoofer hidden + // field that will instruct the Symfony request to pretend the method is a + // different method than it actually is, for convenience from the forms. $append = $this->getAppendage($method); 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 // 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_except($options, $this->reserved)