Skip to content

Commit d02c325

Browse files
committed
Add empty parentheses to method names
1 parent 50c8385 commit d02c325

File tree

97 files changed

+248
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+248
-248
lines changed

best_practices/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Using Expressions for Complex Security Restrictions
129129

130130
If your security logic is a little bit more complex, you can use an :doc:`expression </components/expression_language>`
131131
inside ``@Security``. In the following example, a user can only access the
132-
controller if their email matches the value returned by the ``getAuthorEmail``
132+
controller if their email matches the value returned by the ``getAuthorEmail()``
133133
method on the ``Post`` object:
134134

135135
.. code-block:: php
@@ -258,7 +258,7 @@ of magnitude easier than :doc:`ACLs </security/acl>` and will give
258258
you the flexibility you need in almost all cases.
259259

260260
First, create a voter class. The following example shows a voter that implements
261-
the same ``getAuthorEmail`` logic you used above:
261+
the same ``getAuthorEmail()`` logic you used above:
262262

263263
.. code-block:: php
264264

bundles/extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ but it is more common if you put these definitions in a configuration file
9090
the extension!
9191

9292
For instance, assume you have a file called ``services.xml`` in the
93-
``Resources/config`` directory of your bundle, your load method looks like::
93+
``Resources/config`` directory of your bundle, your ``load()`` method looks like::
9494

9595
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
9696
use Symfony\Component\Config\FileLocator;

bundles/inheritance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ simply by creating a file with the same name.
4040
Overriding Controllers
4141
~~~~~~~~~~~~~~~~~~~~~~
4242

43-
Suppose you want to add some functionality to the ``registerAction`` of a
43+
Suppose you want to add some functionality to the ``registerAction()`` of a
4444
``RegistrationController`` that lives inside FOSUserBundle. To do so,
4545
just create your own ``RegistrationController.php`` file, override the bundle's
4646
original method, and change its functionality::

changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Minor Documentation Changes
7575
* `#30 <https://github.com/symfony/symfony-docs/pull/30>`_ Moved the rest of the book chapters (javiereguiluz)
7676
* `#24 <https://github.com/symfony/symfony-docs/pull/24>`_ Moved book chapters out of the book (javiereguiluz)
7777
* `#20 <https://github.com/symfony/symfony-docs/pull/20>`_ Creating the Controller topic (xabbuh)
78-
* `#6747 <https://github.com/symfony/symfony-docs/pull/6747>`_ Correcting reference to ``isSuccessful`` method for Process (aedmonds)
78+
* `#6747 <https://github.com/symfony/symfony-docs/pull/6747>`_ Correcting reference to ``isSuccessful()`` method for Process (aedmonds)
7979
* `#6600 <https://github.com/symfony/symfony-docs/pull/6600>`_ Removing some extra details from #6444 (weaverryan)
8080
* `#6715 <https://github.com/symfony/symfony-docs/pull/6715>`_ [Book] Remove DI extension info and link the cookbook article instead (WouterJ)
8181
* `#6745 <https://github.com/symfony/symfony-docs/pull/6745>`_ Branch fix (Talita Kocjan Zager, weaverryan)

components/config/definition.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ methods::
475475
->defaultFalse()
476476
;
477477

478-
The ``canBeDisabled`` method looks about the same except that the section
478+
The ``canBeDisabled()`` method looks about the same except that the section
479479
would be enabled by default.
480480

481481
Merging Options
@@ -655,7 +655,7 @@ a second argument::
655655
->end()
656656
;
657657

658-
As well as fixing this, ``fixXmlConfig`` ensures that single XML elements
658+
As well as fixing this, ``fixXmlConfig()`` ensures that single XML elements
659659
are still turned into an array. So you may have:
660660

661661
.. code-block:: xml
@@ -671,7 +671,7 @@ and sometimes only:
671671
672672
By default ``connection`` would be an array in the first case and a string
673673
in the second making it difficult to validate. You can ensure it is always
674-
an array with ``fixXmlConfig``.
674+
an array with ``fixXmlConfig()``.
675675

676676
You can further control the normalization process if you need to. For example,
677677
you may want to allow a string to be set and used as a particular key or

components/console/changing_default_command.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Changing the Default Command
66

77
The Console component will always run the ``ListCommand`` when no command name is
88
passed. In order to change the default command you just need to pass the command
9-
name to the ``setDefaultCommand`` method::
9+
name to the ``setDefaultCommand()`` method::
1010

1111
namespace Acme\Console\Command;
1212

components/console/helpers/dialoghelper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Let the User Choose from a List of Answers
177177
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
178178

179179
If you have a predefined set of answers the user can choose from, you
180-
could use the ``ask`` method described above or, to make sure the user
181-
provided a correct answer, the ``askAndValidate`` method. Both have
180+
could use the ``ask()`` method described above or, to make sure the user
181+
provided a correct answer, the ``askAndValidate()`` method. Both have
182182
the disadvantage that you need to handle incorrect values yourself.
183183

184184
Instead, you can use the

components/console/helpers/progresshelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Progress Helper
55
===============
66

77
.. versionadded:: 2.3
8-
The ``setCurrent`` method was introduced in Symfony 2.3.
8+
The ``setCurrent()`` method was introduced in Symfony 2.3.
99

1010
.. caution::
1111

components/css_selector.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ long and unwieldy expressions.
3434

3535
Many developers -- particularly web developers -- are more comfortable
3636
using CSS selectors to find elements. As well as working in stylesheets,
37-
CSS selectors are used in JavaScript with the ``querySelectorAll`` function
37+
CSS selectors are used in JavaScript with the ``querySelectorAll()`` function
3838
and in popular JavaScript libraries such as jQuery, Prototype and MooTools.
3939

4040
CSS selectors are less powerful than XPath, but far easier to write, read

components/dependency_injection/compilation.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ and can be registered with the container with::
4444

4545
$container->registerExtension($extension);
4646

47-
The main work of the extension is done in the ``load`` method. In the ``load``
47+
The main work of the extension is done in the ``load()`` method. In the ``load()``
4848
method you can load configuration from one or more configuration files as
4949
well as manipulate the container definitions using the methods shown in
5050
:doc:`/service_container/definitions`.
5151

52-
The ``load`` method is passed a fresh container to set up, which is then
52+
The ``load()`` method is passed a fresh container to set up, which is then
5353
merged afterwards into the container it is registered with. This allows
5454
you to have several extensions managing container definitions independently.
5555
The extensions do not add to the containers configuration when they are
56-
added but are processed when the container's ``compile`` method is called.
56+
added but are processed when the container's ``compile()`` method is called.
5757

5858
A very simple extension may just load configuration files into the container::
5959

@@ -85,7 +85,7 @@ sections of config files loaded directly into the container as being for
8585
a particular extension. These sections on the config will not be processed
8686
directly by the container but by the relevant Extension.
8787

88-
The Extension must specify a ``getAlias`` method to implement the interface::
88+
The Extension must specify a ``getAlias()`` method to implement the interface::
8989

9090
// ...
9191

@@ -100,7 +100,7 @@ The Extension must specify a ``getAlias`` method to implement the interface::
100100
}
101101

102102
For YAML configuration files specifying the alias for the extension as a
103-
key will mean that those values are passed to the Extension's ``load`` method:
103+
key will mean that those values are passed to the Extension's ``load()`` method:
104104

105105
.. code-block:: yaml
106106
@@ -133,7 +133,7 @@ are loaded::
133133
or an exception will be thrown.
134134

135135
The values from those sections of the config files are passed into the first
136-
argument of the ``load`` method of the extension::
136+
argument of the ``load()`` method of the extension::
137137

138138
public function load(array $configs, ContainerBuilder $container)
139139
{
@@ -190,7 +190,7 @@ the XML configuration::
190190

191191
.. note::
192192

193-
XSD validation is optional, returning ``false`` from the ``getXsdValidationBasePath``
193+
XSD validation is optional, returning ``false`` from the ``getXsdValidationBasePath()``
194194
method will disable it.
195195

196196
The XML version of the config would then look like this:
@@ -316,7 +316,7 @@ interface. The compiler pass gives you an opportunity to manipulate the
316316
service definitions that have been compiled. This can be very powerful,
317317
but is not something needed in everyday use.
318318

319-
The compiler pass must have the ``process`` method which is passed the container
319+
The compiler pass must have the ``process()`` method which is passed the container
320320
being compiled::
321321

322322
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

0 commit comments

Comments
 (0)