Skip to content

Commit a3ea6a0

Browse files
xabbuhChristian Flothmann
authored andcommitted
use Boolean instead of boolean
1 parent 3ee4cbd commit a3ea6a0

23 files changed

+41
-41
lines changed

components/config/definition.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Component. Configuration values are usually expected to show some kind of
1313
hierarchy. Also, values should be of a certain type, be restricted in number
1414
or be one of a given set of values. For example, the following configuration
1515
(in YAML) shows a clear hierarchy and some validation rules that should be
16-
applied to it (like: "the value for ``auto_connect`` must be a boolean value"):
16+
applied to it (like: "the value for ``auto_connect`` must be a Boolean value"):
1717

1818
.. code-block:: yaml
1919
@@ -87,7 +87,7 @@ reflect the real structure of the configuration values::
8787
->end()
8888
;
8989

90-
The root node itself is an array node, and has children, like the boolean
90+
The root node itself is an array node, and has children, like the Boolean
9191
node ``auto_connect`` and the scalar node ``default_connection``. In general:
9292
after defining a node, a call to ``end()`` takes you one step up in the hierarchy.
9393

@@ -98,7 +98,7 @@ It is possible to validate the type of a provided value by using the appropriate
9898
node definition. Node type are available for:
9999

100100
* scalar
101-
* boolean
101+
* Boolean
102102
* integer (new in 2.2)
103103
* float (new in 2.2)
104104
* enum (new in 2.1)

components/config/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The Config Component
1414
The ``IniFileLoader`` parses the file contents using the
1515
:phpfunction:`parse_ini_file` function, therefore, you can only set
1616
parameters to string values. To set parameters to other data types
17-
(e.g. boolean, integer, etc), the other loaders are recommended.
17+
(e.g. Boolean, integer, etc), the other loaders are recommended.
1818

1919
Installation
2020
------------

components/console/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Unlike arguments, options are not ordered (meaning you can specify them in any
289289
order) and are specified with two dashes (e.g. ``--yell`` - you can also
290290
declare a one-letter shortcut that you can call with a single dash like
291291
``-y``). Options are *always* optional, and can be setup to accept a value
292-
(e.g. ``--dir=src``) or simply as a boolean flag without a value (e.g.
292+
(e.g. ``--dir=src``) or simply as a Boolean flag without a value (e.g.
293293
``--yell``).
294294

295295
.. tip::

components/event_dispatcher/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ be called.
474474

475475
It is possible to detect if an event was stopped by using the
476476
:method:`Symfony\\Component\\EventDispatcher\\Event::isPropagationStopped` method
477-
which returns a boolean value::
477+
which returns a Boolean value::
478478

479479
$dispatcher->dispatch('foo.event', $event);
480480
if ($event->isPropagationStopped()) {

components/filesystem.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ copy
8484
:method:`Symfony\\Component\\Filesystem\\Filesystem::copy` is used to copy
8585
files. If the target already exists, the file is copied only if the source
8686
modification date is later than the target. This behavior can be overridden by
87-
the third boolean argument::
87+
the third Boolean argument::
8888

8989
// works only if image-ICC has been modified after image.jpg
9090
$fs->copy('image-ICC.jpg', 'image.jpg');
@@ -115,7 +115,7 @@ chown
115115
~~~~~
116116

117117
:method:`Symfony\\Component\\Filesystem\\Filesystem::chown` is used to change
118-
the owner of a file. The third argument is a boolean recursive option::
118+
the owner of a file. The third argument is a Boolean recursive option::
119119

120120
// set the owner of the lolcat video to www-data
121121
$fs->chown('lolcat.mp4', 'www-data');
@@ -131,7 +131,7 @@ chgrp
131131
~~~~~
132132

133133
:method:`Symfony\\Component\\Filesystem\\Filesystem::chgrp` is used to change
134-
the group of a file. The third argument is a boolean recursive option::
134+
the group of a file. The third argument is a Boolean recursive option::
135135

136136
// set the group of the lolcat video to nginx
137137
$fs->chgrp('lolcat.mp4', 'nginx');
@@ -147,7 +147,7 @@ chmod
147147
~~~~~
148148

149149
:method:`Symfony\\Component\\Filesystem\\Filesystem::chmod` is used to change
150-
the mode of a file. The fourth argument is a boolean recursive option::
150+
the mode of a file. The fourth argument is a Boolean recursive option::
151151

152152
// set the mode of the video to 0600
153153
$fs->chmod('video.ogg', 0600);
@@ -188,7 +188,7 @@ symlink
188188

189189
:method:`Symfony\\Component\\Filesystem\\Filesystem::symlink` creates a
190190
symbolic link from the target to the destination. If the filesystem does not
191-
support symbolic links, a third boolean argument is available::
191+
support symbolic links, a third Boolean argument is available::
192192

193193
// create a symbolic link
194194
$fs->symlink('/path/to/source', '/path/to/destination');
@@ -260,7 +260,7 @@ thrown.
260260

261261
.. note::
262262

263-
Prior to version 2.1, ``mkdir`` returned a boolean and did not throw
263+
Prior to version 2.1, ``mkdir`` returned a Boolean and did not throw
264264
exceptions. As of 2.1, a
265265
:class:`Symfony\\Component\\Filesystem\\Exception\\IOException` is thrown
266266
if a directory creation fails.

components/yaml/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Types Support
6969
~~~~~~~~~~~~~
7070

7171
It supports most of the YAML built-in types like dates, integers, octals,
72-
booleans, and much more...
72+
Booleans, and much more...
7373

7474
Full Merge Key Support
7575
~~~~~~~~~~~~~~~~~~~~~~

components/yaml/yaml_format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chapter only describes the minimum set of features needed to use YAML as a
1212
configuration file format.
1313

1414
YAML is a simple language that describes data. As PHP, it has a syntax for
15-
simple types like strings, booleans, floats, or integers. But unlike PHP, it
15+
simple types like strings, Booleans, floats, or integers. But unlike PHP, it
1616
makes a difference between arrays (sequences) and hashes (mappings).
1717

1818
Scalars

contributing/code/bc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Turn static into non static No No
330330
=================== ==================================================================
331331
Original Type New Type
332332
=================== ==================================================================
333-
boolean any `scalar type`_ with equivalent `boolean values`_
333+
Boolean any `scalar type`_ with equivalent `Boolean values`_
334334
string any `scalar type`_ or object with equivalent `string values`_
335335
integer any `scalar type`_ with equivalent `integer values`_
336336
float any `scalar type`_ with equivalent `float values`_
@@ -344,7 +344,7 @@ Turn static into non static No No
344344
=================== ==================================================================
345345
Original Type New Type
346346
=================== ==================================================================
347-
boolean any `scalar type`_ with equivalent `boolean values`_
347+
Boolean any `scalar type`_ with equivalent `Boolean values`_
348348
string any `scalar type`_ or object with equivalent `string values`_
349349
integer any `scalar type`_ with equivalent `integer values`_
350350
float any `scalar type`_ with equivalent `float values`_
@@ -364,7 +364,7 @@ Turn static into non static No No
364364
365365
.. _Semantic Versioning: http://semver.org/
366366
.. _scalar type: http://php.net/manual/en/function.is-scalar.php
367-
.. _boolean values: http://php.net/manual/en/function.boolval.php
367+
.. _Boolean values: http://php.net/manual/en/function.boolval.php
368368
.. _string values: http://www.php.net/manual/en/function.strval.php
369369
.. _integer values: http://www.php.net/manual/en/function.intval.php
370370
.. _float values: http://www.php.net/manual/en/function.floatval.php

cookbook/configuration/configuration_organization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ format (``.yml``, ``.xml``, ``.php``, ``.ini``):
265265
The ``IniFileLoader`` parses the file contents using the
266266
:phpfunction:`parse_ini_file` function. Therefore, you can only set
267267
parameters to string values. Use one of the other loaders if you want
268-
to use other data types (e.g. boolean, integer, etc.).
268+
to use other data types (e.g. Boolean, integer, etc.).
269269

270270
If you use any other configuration format, you have to define your own loader
271271
class extending it from :class:`Symfony\\Component\\DependencyInjection\\Loader\\FileLoader`.

cookbook/form/unit_testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ on other extensions. You need add those extensions to the factory object::
184184
protected function setUp()
185185
{
186186
parent::setUp();
187-
187+
188188
$validator = $this->getMock('\Symfony\Component\Validator\ValidatorInterface');
189189
$validator->method('validate')->will($this->returnValue(new ConstraintViolationList()));
190190

@@ -261,7 +261,7 @@ The code above will run your test three times with 3 different sets of
261261
data. This allows for decoupling the test fixtures from the tests and
262262
easily testing against multiple sets of data.
263263

264-
You can also pass another argument, such as a boolean if the form has to
264+
You can also pass another argument, such as a Boolean if the form has to
265265
be synchronized with the given set of data or not etc.
266266

267267
.. _`data providers`: http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers

0 commit comments

Comments
 (0)