Skip to content

Commit b37314b

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

32 files changed

+55
-55
lines changed

reference/configuration/framework.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ http_method_override
7272
.. versionadded:: 2.3
7373
The ``http_method_override`` option was introduced in Symfony 2.3.
7474

75-
**type**: ``Boolean`` **default**: ``true``
75+
**type**: ``boolean`` **default**: ``true``
7676

7777
This determines whether the ``_method`` request parameter is used as the intended
7878
HTTP method on POST requests. If enabled, the
@@ -143,7 +143,7 @@ is set, then the ``ide`` option will be ignored.
143143
test
144144
~~~~
145145

146-
**type**: ``Boolean``
146+
**type**: ``boolean``
147147

148148
If this configuration parameter is present (and not ``false``), then the
149149
services related to testing your application (e.g. ``test.client``) are loaded.
@@ -251,14 +251,14 @@ to the cookie specification.
251251
cookie_secure
252252
.............
253253

254-
**type**: ``Boolean`` **default**: ``false``
254+
**type**: ``boolean`` **default**: ``false``
255255

256256
This determines whether cookies should only be sent over secure connections.
257257

258258
cookie_httponly
259259
...............
260260

261-
**type**: ``Boolean`` **default**: ``false``
261+
**type**: ``boolean`` **default**: ``false``
262262

263263
This determines whether cookies should only be accessible through the HTTP protocol.
264264
This means that the cookie won't be accessible by scripting languages, such
@@ -552,7 +552,7 @@ to implement the :class:`Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInt
552552
enable_annotations
553553
..................
554554

555-
**type**: ``Boolean`` **default**: ``false``
555+
**type**: ``boolean`` **default**: ``false``
556556

557557
If this option is enabled, validation constraints can be defined using annotations.
558558

reference/configuration/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ a separate firewall just for ``check_path`` URL).
276276
use_forward
277277
...........
278278

279-
**type**: ``Boolean`` **default**: ``false``
279+
**type**: ``boolean`` **default**: ``false``
280280

281281
If you'd like the user to be forwarded to the login form instead of being
282282
redirected, set this option to ``true``.
@@ -302,7 +302,7 @@ will look for a POST parameter with this name.
302302
post_only
303303
.........
304304

305-
**type**: ``Boolean`` **default**: ``true``
305+
**type**: ``boolean`` **default**: ``true``
306306

307307
By default, you must submit your login form to the ``check_path`` URL as
308308
a POST request. By setting this option to ``false``, you can send a GET request
@@ -311,10 +311,10 @@ to the ``check_path`` URL.
311311
Redirecting after Login
312312
~~~~~~~~~~~~~~~~~~~~~~~
313313

314-
* ``always_use_default_target_path`` (type: ``Boolean``, default: ``false``)
314+
* ``always_use_default_target_path`` (type: ``boolean``, default: ``false``)
315315
* ``default_target_path`` (type: ``string``, default: ``/``)
316316
* ``target_path_parameter`` (type: ``string``, default: ``_target_path``)
317-
* ``use_referer`` (type: ``Boolean``, default: ``false``)
317+
* ``use_referer`` (type: ``boolean``, default: ``false``)
318318

319319
.. _reference-security-pbkdf2:
320320

reference/configuration/swiftmailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ on the ``X-Swift-To``, ``X-Swift-Cc`` and ``X-Swift-Bcc`` headers.
159159
disable_delivery
160160
~~~~~~~~~~~~~~~~
161161

162-
**type**: ``Boolean`` **default**: ``false``
162+
**type**: ``boolean`` **default**: ``false``
163163

164164
If true, the ``transport`` will automatically be set to ``null``, and no
165165
emails will actually be delivered.
166166

167167
logging
168168
~~~~~~~
169169

170-
**type**: ``Boolean`` **default**: ``%kernel.debug%``
170+
**type**: ``boolean`` **default**: ``%kernel.debug%``
171171

172172
If true, Symfony's data collector will be activated for Swift Mailer and the
173173
information will be available in the profiler.

reference/constraints/Choice.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ for details on its usage.
281281
multiple
282282
~~~~~~~~
283283

284-
**type**: ``Boolean`` **default**: ``false``
284+
**type**: ``boolean`` **default**: ``false``
285285

286286
If this option is true, the input value is expected to be an array instead
287287
of a single, scalar value. The constraint will check that each value of
@@ -344,7 +344,7 @@ too many options per the `max`_ option.
344344
strict
345345
~~~~~~
346346

347-
**type**: ``Boolean`` **default**: ``false``
347+
**type**: ``boolean`` **default**: ``false``
348348

349349
If true, the validator will also check the type of the input value. Specifically,
350350
this value is passed to as the third argument to the PHP :phpfunction:`in_array` method

reference/constraints/Collection.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ be executed against that element of the collection.
298298
allowExtraFields
299299
~~~~~~~~~~~~~~~~
300300

301-
**type**: ``Boolean`` **default**: false
301+
**type**: ``boolean`` **default**: false
302302

303303
If this option is set to ``false`` and the underlying collection contains
304304
one or more elements that are not included in the `fields`_ option, a validation
@@ -307,14 +307,14 @@ error will be returned. If set to ``true``, extra fields are ok.
307307
extraFieldsMessage
308308
~~~~~~~~~~~~~~~~~~
309309

310-
**type**: ``Boolean`` **default**: ``The fields {{ fields }} were not expected.``
310+
**type**: ``boolean`` **default**: ``The fields {{ fields }} were not expected.``
311311

312312
The message shown if `allowExtraFields`_ is false and an extra field is detected.
313313

314314
allowMissingFields
315315
~~~~~~~~~~~~~~~~~~
316316

317-
**type**: ``Boolean`` **default**: false
317+
**type**: ``boolean`` **default**: false
318318

319319
If this option is set to ``false`` and one or more fields from the `fields`_
320320
option are not present in the underlying collection, a validation error will
@@ -324,7 +324,7 @@ option are not present in the underlying collection.
324324
missingFieldsMessage
325325
~~~~~~~~~~~~~~~~~~~~
326326

327-
**type**: ``Boolean`` **default**: ``The fields {{ fields }} are missing.``
327+
**type**: ``boolean`` **default**: ``The fields {{ fields }} are missing.``
328328

329329
The message shown if `allowMissingFields`_ is false and one or more fields
330330
are missing from the underlying collection.

reference/constraints/Email.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ This message is shown if the underlying data is not a valid email address.
9999
checkMX
100100
~~~~~~~
101101

102-
**type**: ``Boolean`` **default**: ``false``
102+
**type**: ``boolean`` **default**: ``false``
103103

104104
If true, then the :phpfunction:`checkdnsrr` PHP function will be used to
105105
check the validity of the MX record of the host of the given email.
106106

107107
checkHost
108108
~~~~~~~~~
109109

110-
**type**: ``Boolean`` **default**: ``false``
110+
**type**: ``boolean`` **default**: ``false``
111111

112112
If true, then the :phpfunction:`checkdnsrr` PHP function will be used to
113113
check the validity of the MX *or* the A *or* the AAAA record of the host

reference/constraints/Issn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ The message shown if the given value is not a valid ISSN.
9090
caseSensitive
9191
~~~~~~~~~~~~~
9292

93-
**type**: ``Boolean`` default: ``false``
93+
**type**: ``boolean`` default: ``false``
9494

9595
The validator will allow ISSN values to end with a lower case 'x' by default.
9696
When switching this to ``true``, the validator requires an upper case 'X'.
9797

9898
requireHyphen
9999
~~~~~~~~~~~~~
100100

101-
**type**: ``Boolean`` default: ``false``
101+
**type**: ``boolean`` default: ``false``
102102

103103
The validator will allow non hyphenated ISSN values by default. When switching
104104
this to ``true``, the validator requires a hyphenated ISSN value.

reference/constraints/Regex.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Setting ``htmlPattern`` to false will disable client side validation.
264264
match
265265
~~~~~
266266

267-
**type**: ``Boolean`` default: ``true``
267+
**type**: ``boolean`` default: ``true``
268268

269269
If ``true`` (or not set), this validator will pass if the given string matches
270270
the given `pattern`_ regular expression. However, when this option is set

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Now, the message would be bound to the ``port`` field with this configuration.
257257
ignoreNull
258258
~~~~~~~~~~
259259

260-
**type**: ``Boolean`` **default**: ``true``
260+
**type**: ``boolean`` **default**: ``true``
261261

262262
.. versionadded:: 2.1
263263
The ``ignoreNull`` option was introduced in Symfony 2.1.

reference/forms/types/choice.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ Field Variables
192192
+------------------------+--------------+-------------------------------------------------------------------+
193193
| Variable | Type | Usage |
194194
+========================+==============+===================================================================+
195-
| multiple | ``Boolean`` | The value of the `multiple`_ option. |
195+
| multiple | ``boolean`` | The value of the `multiple`_ option. |
196196
+------------------------+--------------+-------------------------------------------------------------------+
197-
| expanded | ``Boolean`` | The value of the `expanded`_ option. |
197+
| expanded | ``boolean`` | The value of the `expanded`_ option. |
198198
+------------------------+--------------+-------------------------------------------------------------------+
199199
| preferred_choices | ``array`` | A nested array containing the ``ChoiceView`` objects of |
200200
| | | choices which should be presented to the user with priority. |
@@ -210,7 +210,7 @@ Field Variables
210210
| is_selected | ``callable`` | A callable which takes a ``ChoiceView`` and the selected value(s) |
211211
| | | and returns whether the choice is in the selected value(s). |
212212
+------------------------+--------------+-------------------------------------------------------------------+
213-
| empty_value_in_choices | ``Boolean`` | Whether the empty value is in the choice list. |
213+
| empty_value_in_choices | ``boolean`` | Whether the empty value is in the choice list. |
214214
+------------------------+--------------+-------------------------------------------------------------------+
215215

216216
.. tip::

0 commit comments

Comments
 (0)