Skip to content

Commit 99e4d37

Browse files
committed
Fix formatting
1 parent 829ef1b commit 99e4d37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reference/forms/types/choice.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ user sees on the form (e.g. ``Male``).
5151
.. code-block:: php
5252
5353
$builder->add('gender', 'choice', array(
54-
'choices' => array('m' => 'Male', 'f' => 'Female'),
55-
'required' => false,
54+
'choices' => array('m' => 'Male', 'f' => 'Female'),
55+
'required' => false,
5656
));
5757
5858
By setting ``multiple`` to true, you can allow the user to choose multiple
@@ -62,12 +62,12 @@ of checkboxes depending on the ``expanded`` option:
6262
.. code-block:: php
6363
6464
$builder->add('availability', 'choice', array(
65-
'choices' => array(
65+
'choices' => array(
6666
'morning' => 'Morning',
6767
'afternoon' => 'Afternoon',
6868
'evening' => 'Evening',
6969
),
70-
'multiple' => true,
70+
'multiple' => true,
7171
));
7272
7373
You can also use the ``choice_list`` option, which takes an object that can
@@ -90,7 +90,7 @@ by this field. The ``choices`` option is an array, where the array key
9090
is the item value and the array value is the item's label::
9191

9292
$builder->add('gender', 'choice', array(
93-
'choices' => array('m' => 'Male', 'f' => 'Female')
93+
'choices' => array('m' => 'Male', 'f' => 'Female'),
9494
));
9595

9696
.. tip::

0 commit comments

Comments
 (0)