Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d43b845

Browse filesBrowse 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
Copy full SHA for d43b845

File tree

Expand file treeCollapse file tree

3 files changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-8
lines changed

‎reference/forms/types/checkbox.rst

Copy file name to clipboardExpand all lines: reference/forms/types/checkbox.rst
+2-2Lines changed: 2 additions & 2 deletions
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

‎reference/forms/types/choice.rst

Copy file name to clipboardExpand all lines: reference/forms/types/choice.rst
+5-5Lines 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::

‎reference/forms/types/entity.rst

Copy file name to clipboardExpand all lines: reference/forms/types/entity.rst
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.