From 6b023d8055870e5d4dcc9dccb1f30a55b7bc589a Mon Sep 17 00:00:00 2001 From: Joseph Silber Date: Sun, 29 Mar 2015 18:06:56 -0400 Subject: [PATCH] Move comment to correct spot --- src/HtmlBuilder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index 44954d3..8db2e1a 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -339,9 +339,6 @@ class HtmlBuilder { { $html = array(); - // For numeric keys we will assume that the key and the value are the same - // as this will convert HTML attributes such as "required" to a correct - // form like required="required" instead of using incorrect numerics. foreach ((array) $attributes as $key => $value) { $element = $this->attributeElement($key, $value); @@ -361,6 +358,9 @@ class HtmlBuilder { */ protected function attributeElement($key, $value) { + // For numeric keys we will assume that the key and the value are the same + // as this will convert HTML attributes such as "required" to a correct + // form like required="required" instead of using incorrect numerics. if (is_numeric($key)) $key = $value; if ( ! is_null($value)) return $key.'="'.e($value).'"';