Skip to content

Commit 0a2e6bf

Browse files
author
Christian Flothmann
committed
use boolean instead of Boolean
1 parent c09ba41 commit 0a2e6bf

37 files changed

+71
-71
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ it into a format that's suitable for being rendered in an HTML form.
198198
``task`` property via the ``getTask()`` and ``setTask()`` methods on the
199199
``Task`` class. Unless a property is public, it *must* have a "getter" and
200200
"setter" method so that the Form component can get and put data onto the
201-
property. For a Boolean property, you can use an "isser" or "hasser" method
201+
property. For a boolean property, you can use an "isser" or "hasser" method
202202
(e.g. ``isPublished()`` or ``hasReminder()``) instead of a getter (e.g.
203203
``getPublished()`` or ``getReminder()``).
204204

components/yaml/yaml_format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Nulls in YAML can be expressed with ``null`` or ``~``.
119119
Booleans
120120
~~~~~~~~
121121

122-
Booleans in YAML are expressed with ``true`` and ``false``.
122+
booleans in YAML are expressed with ``true`` and ``false``.
123123

124124
Dates
125125
~~~~~

contributing/code/standards.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ example containing most features described below:
7979

8080
throw new \RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
8181
}
82-
82+
8383
private function reverseBoolean($value = null, $theSwitch = false)
8484
{
8585
if (!$theSwitch) {
@@ -95,7 +95,7 @@ Structure
9595

9696
* Add a single space after each comma delimiter;
9797

98-
* Add a single space around binary operators (``==``, ``&&``, ...), with
98+
* Add a single space around binary operators (``==``, ``&&``, ...), with
9999
the exception of the concatenation (``.``) operator;
100100

101101
* Place unary operators (``!``, ``--``, ...) adjacent to the affected variable;

cookbook/configuration/using_parameters_in_dic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ be injected with this parameter via the extension as follows::
105105

106106
public function __construct($debug)
107107
{
108-
$this->debug = (Boolean) $debug;
108+
$this->debug = (bool) $debug;
109109
}
110110

111111
public function getConfigTreeBuilder()

cookbook/doctrine/registration_form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Start by creating a simple class which represents the "registration"::
194194

195195
public function setTermsAccepted($termsAccepted)
196196
{
197-
$this->termsAccepted = (Boolean) $termsAccepted;
197+
$this->termsAccepted = (bool) $termsAccepted;
198198
}
199199
}
200200

cookbook/security/voters_data_permission.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ edit a particular object. Here's an example implementation::
121121
switch($attribute) {
122122
case self::VIEW:
123123
// the data object could have for example a method isPrivate()
124-
// which checks the Boolean attribute $private
124+
// which checks the boolean attribute $private
125125
if (!$post->isPrivate()) {
126126
return VoterInterface::ACCESS_GRANTED;
127127
}

reference/configuration/framework.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ http_method_override
6767
.. versionadded:: 2.3
6868
The ``http_method_override`` option was introduced in Symfony 2.3.
6969

70-
**type**: ``Boolean`` **default**: ``true``
70+
**type**: ``boolean`` **default**: ``true``
7171

7272
This determines whether the ``_method`` request parameter is used as the intended
7373
HTTP method on POST requests. If enabled, the
@@ -138,7 +138,7 @@ is set, then the ``ide`` option will be ignored.
138138
test
139139
~~~~
140140

141-
**type**: ``Boolean``
141+
**type**: ``boolean``
142142

143143
If this configuration parameter is present (and not ``false``), then the
144144
services related to testing your application (e.g. ``test.client``) are loaded.
@@ -235,14 +235,14 @@ to the cookie specification.
235235
cookie_secure
236236
.............
237237

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

240240
This determines whether cookies should only be sent over secure connections.
241241

242242
cookie_httponly
243243
...............
244244

245-
**type**: ``Boolean`` **default**: ``false``
245+
**type**: ``boolean`` **default**: ``false``
246246

247247
This determines whether cookies should only be accessible through the HTTP protocol.
248248
This means that the cookie won't be accessible by scripting languages, such

reference/configuration/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ The Login Form and Process
265265
Be sure that this URL is covered by your main firewall (i.e. don't create
266266
a separate firewall just for ``check_path`` URL).
267267

268-
* ``use_forward`` (type: ``Boolean``, default: ``false``)
268+
* ``use_forward`` (type: ``boolean``, default: ``false``)
269269
If you'd like the user to be forwarded to the login form instead of
270270
being redirected, set this option to ``true``.
271271

@@ -279,18 +279,18 @@ The Login Form and Process
279279
your login form. When you submit the form to ``check_path``, the security
280280
system will look for a POST parameter with this name.
281281

282-
* ``post_only`` (type: ``Boolean``, default: ``true``)
282+
* ``post_only`` (type: ``boolean``, default: ``true``)
283283
By default, you must submit your login form to the ``check_path`` URL
284284
as a POST request. By setting this option to ``false``, you can send a
285285
GET request to the ``check_path`` URL.
286286

287287
Redirecting after Login
288288
~~~~~~~~~~~~~~~~~~~~~~~
289289

290-
* ``always_use_default_target_path`` (type: ``Boolean``, default: ``false``)
290+
* ``always_use_default_target_path`` (type: ``boolean``, default: ``false``)
291291
* ``default_target_path`` (type: ``string``, default: ``/``)
292292
* ``target_path_parameter`` (type: ``string``, default: ``_target_path``)
293-
* ``use_referer`` (type: ``Boolean``, default: ``false``)
293+
* ``use_referer`` (type: ``boolean``, default: ``false``)
294294

295295
.. _reference-security-pbkdf2:
296296

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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ If your valid choice list is simple, you can pass them in directly via the
8989
9090
use Symfony\Component\Validator\Mapping\ClassMetadata;
9191
use Symfony\Component\Validator\Constraints as Assert;
92-
92+
9393
class Author
9494
{
9595
protected $gender;
96-
96+
9797
public static function loadValidatorMetadata(ClassMetadata $metadata)
9898
{
9999
$metadata->addPropertyConstraint('gender', new Assert\Choice(array(
@@ -176,11 +176,11 @@ constraint.
176176
177177
use Symfony\Component\Validator\Mapping\ClassMetadata;
178178
use Symfony\Component\Validator\Constraints as Assert;
179-
179+
180180
class Author
181181
{
182182
protected $gender;
183-
183+
184184
public static function loadValidatorMetadata(ClassMetadata $metadata)
185185
{
186186
$metadata->addPropertyConstraint('gender', new Assert\Choice(array(
@@ -244,11 +244,11 @@ you can pass the class name and the method as an array.
244244
245245
use Symfony\Component\Validator\Mapping\ClassMetadata;
246246
use Symfony\Component\Validator\Constraints as Assert;
247-
247+
248248
class Author
249249
{
250250
protected $gender;
251-
251+
252252
public static function loadValidatorMetadata(ClassMetadata $metadata)
253253
{
254254
$metadata->addPropertyConstraint('gender', new Assert\Choice(array(
@@ -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

0 commit comments

Comments
 (0)