Skip to content

Commit

Permalink
code style standardization on form type options
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Szaraniec committed Feb 6, 2015
1 parent a3e2469 commit 70a4484
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
14 changes: 7 additions & 7 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Field Options
allow_add
~~~~~~~~~

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

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

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

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

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

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

**type**: ``String`` **default**: ``__name__``
**type**: ``string`` **default**: ``__name__``

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

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

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

Expand All @@ -379,6 +379,6 @@ Field Variables
============ =========== ========================================
Variable Type Usage
============ =========== ========================================
allow_add ``Boolean`` The value of the `allow_add`_ option.
allow_delete ``Boolean`` The value of the `allow_delete`_ option.
allow_add ``boolean`` The value of the `allow_add`_ option.
allow_delete ``boolean`` The value of the `allow_delete`_ option.
============ =========== ========================================
2 changes: 1 addition & 1 deletion reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ directly.
choices
~~~~~~~

**type**: array | ``\Traversable`` **default**: ``null``
**type**: ``array`` | ``\Traversable`` **default**: ``null``

Instead of allowing the `class`_ and `query_builder`_ options to fetch the
entities to include for you, you can pass the ``choices`` option directly.
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/attr.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
attr
~~~~

**type**: array **default**: Empty array
**type**: ``array`` **default**: ``array()``

If you want to add extra attributes to an HTML field representation
you can use the ``attr`` option. It's an associative array with HTML attributes
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/button_attr.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
attr
~~~~

**type**: array **default**: Empty array
**type**: ``array`` **default**: ``array()``

If you want to add extra attributes to the HTML representation of the button,
you can use ``attr`` option. It's an associative array with HTML attribute
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/by_reference.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
by_reference
~~~~~~~~~~~~

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

In most cases, if you have a ``name`` field, then you expect ``setName()``
to be called on the underlying object. In some cases, however, ``setName()``
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/cascade_validation.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cascade_validation
~~~~~~~~~~~~~~~~~~

**type**: Boolean **default**: false
**type**: ``boolean`` **default**: ``false``

Set this option to ``true`` to force validation on embedded form types.
For example, if you have a ``ProductType`` with an embedded ``CategoryType``,
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/constraints.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
constraints
~~~~~~~~~~~

**type**: array or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``

Allows you to attach one or more validation constraints to a specific field.
For more information, see :ref:`Adding Validation<form-option-constraints>`.
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/data.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
data
~~~~

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

When you create a form, each field initially displays the value of the
corresponding property of the form's domain object (if an object is bound
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/empty_value.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ empty_value
Since Symfony 2.3, empty values are also supported if the ``expanded``
option is set to true.

**type**: ``string`` or ``Boolean``
**type**: ``string`` or ``boolean``

This option determines whether or not a special "empty" option (e.g. "Choose an option")
will appear at the top of a select widget. This option only applies if the
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/error_bubbling.rst.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
error_bubbling
~~~~~~~~~~~~~~

**type**: ``Boolean`` **default**: ``false`` unless the form is ``compound``
**type**: ``boolean`` **default**: ``false`` unless the form is ``compound``

.. include:: /reference/forms/types/options/_error_bubbling_body.rst.inc
2 changes: 1 addition & 1 deletion reference/forms/types/options/expanded.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
expanded
~~~~~~~~

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

If set to true, radio buttons or checkboxes will be rendered (depending
on the ``multiple`` value). If false, a select element will be rendered.
2 changes: 1 addition & 1 deletion reference/forms/types/options/multiple.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
multiple
~~~~~~~~

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

If true, the user will be able to select multiple options (as opposed
to choosing just one option). Depending on the value of the ``expanded``
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/read_only.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
read_only
~~~~~~~~~

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

If this option is true, the field will be rendered with the ``readonly``
attribute so that the field is not editable.
2 changes: 1 addition & 1 deletion reference/forms/types/options/required.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
required
~~~~~~~~

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

If true, an `HTML5 required attribute`_ will be rendered. The corresponding
``label`` will also render with a ``required`` class.
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/trim.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trim
~~~~

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

If true, the whitespace of the submitted string value will be stripped
via the ``trim()`` function when the data is bound. This guarantees that
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/options/with_minutes.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ with_minutes
.. versionadded:: 2.2
The ``with_minutes`` option was introduced in Symfony 2.2.

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

Whether or not to include minutes in the input. This will result in an additional
input to capture minutes.
2 changes: 1 addition & 1 deletion reference/forms/types/options/with_seconds.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
with_seconds
~~~~~~~~~~~~

**type**: ``Boolean`` **default**: ``false``
**type**: ``boolean`` **default**: ``false``

Whether or not to include seconds in the input. This will result in an additional
input to capture seconds.
2 changes: 1 addition & 1 deletion reference/forms/types/password.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Field Options
always_empty
~~~~~~~~~~~~

**type**: ``Boolean`` **default**: ``true``
**type**: ``boolean`` **default**: ``true``

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

0 comments on commit 70a4484

Please sign in to comment.