Skip to content

Commit 70a4484

Browse files
author
Adam Szaraniec
committed
code style standardization on form type options
1 parent a3e2469 commit 70a4484

18 files changed

+24
-24
lines changed

reference/forms/types/collection.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Field Options
214214
allow_add
215215
~~~~~~~~~
216216

217-
**type**: ``Boolean`` **default**: ``false``
217+
**type**: ``boolean`` **default**: ``false``
218218

219219
If set to ``true``, then if unrecognized items are submitted to the collection,
220220
they will be added as new items. The ending array will contain the existing
@@ -235,7 +235,7 @@ client side. For more information, see the above example and :ref:`cookbook-form
235235
allow_delete
236236
~~~~~~~~~~~~
237237

238-
**type**: ``Boolean`` **default**: ``false``
238+
**type**: ``boolean`` **default**: ``false``
239239

240240
If set to ``true``, then if an existing item is not contained in the submitted
241241
data, it will be correctly absent from the final array of items. This means
@@ -280,7 +280,7 @@ you'd need to at least pass the ``choices`` option to the underlying type::
280280
prototype
281281
~~~~~~~~~
282282

283-
**type**: ``Boolean`` **default**: ``true``
283+
**type**: ``boolean`` **default**: ``true``
284284

285285
This option is useful when using the `allow_add`_ option. If ``true`` (and
286286
if `allow_add`_ is also ``true``), a special "prototype" attribute will be
@@ -319,7 +319,7 @@ as :ref:`cookbook-form-collections-new-prototype`.
319319
prototype_name
320320
~~~~~~~~~~~~~~
321321

322-
**type**: ``String`` **default**: ``__name__``
322+
**type**: ``string`` **default**: ``__name__``
323323

324324
If you have several collections in your form, or worse, nested collections
325325
you may want to change the placeholder so that unrelated placeholders are not
@@ -359,7 +359,7 @@ The default value is ``array()`` (empty array).
359359
error_bubbling
360360
~~~~~~~~~~~~~~
361361

362-
**type**: ``Boolean`` **default**: ``true``
362+
**type**: ``boolean`` **default**: ``true``
363363

364364
.. include:: /reference/forms/types/options/_error_bubbling_body.rst.inc
365365

@@ -379,6 +379,6 @@ Field Variables
379379
============ =========== ========================================
380380
Variable Type Usage
381381
============ =========== ========================================
382-
allow_add ``Boolean`` The value of the `allow_add`_ option.
383-
allow_delete ``Boolean`` The value of the `allow_delete`_ option.
382+
allow_add ``boolean`` The value of the `allow_add`_ option.
383+
allow_delete ``boolean`` The value of the `allow_delete`_ option.
384384
============ =========== ========================================

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ directly.
183183
choices
184184
~~~~~~~
185185

186-
**type**: array | ``\Traversable`` **default**: ``null``
186+
**type**: ``array`` | ``\Traversable`` **default**: ``null``
187187

188188
Instead of allowing the `class`_ and `query_builder`_ options to fetch the
189189
entities to include for you, you can pass the ``choices`` option directly.

reference/forms/types/options/attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
attr
22
~~~~
33

4-
**type**: array **default**: Empty array
4+
**type**: ``array`` **default**: ``array()``
55

66
If you want to add extra attributes to an HTML field representation
77
you can use the ``attr`` option. It's an associative array with HTML attributes

reference/forms/types/options/button_attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
attr
22
~~~~
33

4-
**type**: array **default**: Empty array
4+
**type**: ``array`` **default**: ``array()``
55

66
If you want to add extra attributes to the HTML representation of the button,
77
you can use ``attr`` option. It's an associative array with HTML attribute

reference/forms/types/options/by_reference.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
by_reference
22
~~~~~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``true``
4+
**type**: ``boolean`` **default**: ``true``
55

66
In most cases, if you have a ``name`` field, then you expect ``setName()``
77
to be called on the underlying object. In some cases, however, ``setName()``

reference/forms/types/options/cascade_validation.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cascade_validation
22
~~~~~~~~~~~~~~~~~~
33

4-
**type**: Boolean **default**: false
4+
**type**: ``boolean`` **default**: ``false``
55

66
Set this option to ``true`` to force validation on embedded form types.
77
For example, if you have a ``ProductType`` with an embedded ``CategoryType``,

reference/forms/types/options/constraints.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
constraints
22
~~~~~~~~~~~
33

4-
**type**: array or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
4+
**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
55

66
Allows you to attach one or more validation constraints to a specific field.
77
For more information, see :ref:`Adding Validation<form-option-constraints>`.

reference/forms/types/options/data.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
data
22
~~~~
33

4-
**type**: mixed **default**: Defaults to field of the underlying object (if there is one)
4+
**type**: ``mixed`` **default**: Defaults to field of the underlying object (if there is one)
55

66
When you create a form, each field initially displays the value of the
77
corresponding property of the form's domain object (if an object is bound

reference/forms/types/options/empty_value.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ empty_value
55
Since Symfony 2.3, empty values are also supported if the ``expanded``
66
option is set to true.
77

8-
**type**: ``string`` or ``Boolean``
8+
**type**: ``string`` or ``boolean``
99

1010
This option determines whether or not a special "empty" option (e.g. "Choose an option")
1111
will appear at the top of a select widget. This option only applies if the
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
error_bubbling
22
~~~~~~~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``false`` unless the form is ``compound``
4+
**type**: ``boolean`` **default**: ``false`` unless the form is ``compound``
55

66
.. include:: /reference/forms/types/options/_error_bubbling_body.rst.inc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
expanded
22
~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
If set to true, radio buttons or checkboxes will be rendered (depending
77
on the ``multiple`` value). If false, a select element will be rendered.

reference/forms/types/options/multiple.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
multiple
22
~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
If true, the user will be able to select multiple options (as opposed
77
to choosing just one option). Depending on the value of the ``expanded``
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
read_only
22
~~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
If this option is true, the field will be rendered with the ``readonly``
77
attribute so that the field is not editable.

reference/forms/types/options/required.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
required
22
~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``true``
4+
**type**: ``boolean`` **default**: ``true``
55

66
If true, an `HTML5 required attribute`_ will be rendered. The corresponding
77
``label`` will also render with a ``required`` class.

reference/forms/types/options/trim.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
trim
22
~~~~
33

4-
**type**: ``Boolean`` **default**: ``true``
4+
**type**: ``boolean`` **default**: ``true``
55

66
If true, the whitespace of the submitted string value will be stripped
77
via the ``trim()`` function when the data is bound. This guarantees that

reference/forms/types/options/with_minutes.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ with_minutes
44
.. versionadded:: 2.2
55
The ``with_minutes`` option was introduced in Symfony 2.2.
66

7-
**type**: ``Boolean`` **default**: ``true``
7+
**type**: ``boolean`` **default**: ``true``
88

99
Whether or not to include minutes in the input. This will result in an additional
1010
input to capture minutes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
with_seconds
22
~~~~~~~~~~~~
33

4-
**type**: ``Boolean`` **default**: ``false``
4+
**type**: ``boolean`` **default**: ``false``
55

66
Whether or not to include seconds in the input. This will result in an additional
77
input to capture seconds.

reference/forms/types/password.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Field Options
3434
always_empty
3535
~~~~~~~~~~~~
3636

37-
**type**: ``Boolean`` **default**: ``true``
37+
**type**: ``boolean`` **default**: ``true``
3838

3939
If set to true, the field will *always* render blank, even if the corresponding
4040
field has a value. When set to false, the password field will be rendered

0 commit comments

Comments
 (0)