Skip to content

Commit d43b845

Browse files
committed
minor #5116 Fixes for 2.3 branch (ifdattic)
This PR was merged into the 2.3 branch. Discussion ---------- Fixes for 2.3 branch | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Replacement for PR #4956 Commits ------- 2324ea5 Fix formatting 99e4d37 Fix formatting 829ef1b Fix formatting
2 parents eef413b + 2324ea5 commit d43b845

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: reference/forms/types/checkbox.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Example Usage
3737
.. code-block:: php
3838
3939
$builder->add('public', 'checkbox', array(
40-
'label' => 'Show this entry publicly?',
41-
'required' => false,
40+
'label' => 'Show this entry publicly?',
41+
'required' => false,
4242
));
4343
4444
Field Options

Diff for: reference/forms/types/choice.rst

+5-5
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::

Diff for: reference/forms/types/entity.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ option. The easiest way to use the option is as follows::
7676

7777
$builder->add('users', 'entity', array(
7878
'class' => 'AcmeHelloBundle:User',
79-
'query_builder' => function(EntityRepository $er) {
79+
'query_builder' => function (EntityRepository $er) {
8080
return $er->createQueryBuilder('u')
8181
->orderBy('u.username', 'ASC');
8282
},

0 commit comments

Comments
 (0)