Fix indentation.

This commit is contained in:
mark_story 2016-05-22 16:39:49 -04:00
parent 1a7e8c51e7
commit d5d46e21bd
2 changed files with 23 additions and 23 deletions

View file

@ -3914,24 +3914,24 @@ class FormHelperTest extends CakeTestCase {
); );
$this->assertTags($result, $expected); $this->assertTags($result, $expected);
$result = $this->Form->radio('Model.field', array('option A', 'option B'), array('fieldset' => 'classy-stuff')); $result = $this->Form->radio('Model.field', array('option A', 'option B'), array('fieldset' => 'classy-stuff'));
$expected = array( $expected = array(
'fieldset' => array('class' => 'classy-stuff'), 'fieldset' => array('class' => 'classy-stuff'),
'legend' => array(), 'legend' => array(),
'Field', 'Field',
'/legend', '/legend',
'input' => array('type' => 'hidden', 'name' => 'data[Model][field]', 'value' => '', 'id' => 'ModelField_'), 'input' => array('type' => 'hidden', 'name' => 'data[Model][field]', 'value' => '', 'id' => 'ModelField_'),
array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '0', 'id' => 'ModelField0')), array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '0', 'id' => 'ModelField0')),
array('label' => array('for' => 'ModelField0')), array('label' => array('for' => 'ModelField0')),
'option A', 'option A',
'/label', '/label',
array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '1', 'id' => 'ModelField1')), array('input' => array('type' => 'radio', 'name' => 'data[Model][field]', 'value' => '1', 'id' => 'ModelField1')),
array('label' => array('for' => 'ModelField1')), array('label' => array('for' => 'ModelField1')),
'option B', 'option B',
'/label', '/label',
'/fieldset' '/fieldset'
); );
$this->assertTags($result, $expected); $this->assertTags($result, $expected);
$result = $this->Form->radio( $result = $this->Form->radio(
'Employee.gender', 'Employee.gender',

View file

@ -975,11 +975,11 @@ class FormHelper extends AppHelper {
$out .= $this->input($name, $options); $out .= $this->input($name, $options);
} }
if (is_string($fieldset)) { if (is_string($fieldset)) {
$fieldsetClass = array('class' => $fieldset); $fieldsetClass = array('class' => $fieldset);
} else { } else {
$fieldsetClass = ''; $fieldsetClass = '';
} }
if ($fieldset) { if ($fieldset) {
if ($legend) { if ($legend) {