Skip to content

Commit fc07937

Browse files
committed
minor #11771 Use valid number of backslashes, depending on 1 or 2 ticks (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- Use valid number of backslashes, depending on 1 or 2 ticks @javiereguiluz I created a rule for the doctor 👍 After merging, I will check the other branches, too 👍 Commits ------- abe4c85 Use valid number of backslashes, depending on 1 or 2 ticks
2 parents d95afaf + abe4c85 commit fc07937

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

components/cache/cache_pools.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Saving Cache Items
6969
------------------
7070

7171
The most common method to save cache items is
72-
``Psr\\Cache\\CacheItemPoolInterface::save``, which stores the
72+
``Psr\Cache\CacheItemPoolInterface::save``, which stores the
7373
item in the cache immediately (it returns ``true`` if the item was saved or
7474
``false`` if some error occurred)::
7575

@@ -80,9 +80,9 @@ item in the cache immediately (it returns ``true`` if the item was saved or
8080

8181
Sometimes you may prefer to not save the objects immediately in order to
8282
increase the application performance. In those cases, use the
83-
``Psr\\Cache\\CacheItemPoolInterface::saveDeferred`` method to mark cache
83+
``Psr\Cache\CacheItemPoolInterface::saveDeferred`` method to mark cache
8484
items as "ready to be persisted" and then call to
85-
``Psr\\Cache\\CacheItemPoolInterface::commit`` method when you are ready
85+
``Psr\Cache\CacheItemPoolInterface::commit`` method when you are ready
8686
to persist them all::
8787

8888
// ...
@@ -103,22 +103,22 @@ Removing Cache Items
103103
--------------------
104104

105105
Cache Pools include methods to delete a cache item, some of them or all of them.
106-
The most common is ``Psr\\Cache\\CacheItemPoolInterface::deleteItem``,
106+
The most common is ``Psr\Cache\CacheItemPoolInterface::deleteItem``,
107107
which deletes the cache item identified by the given key (it returns ``true``
108108
when the item is successfully deleted or doesn't exist and ``false`` otherwise)::
109109

110110
// ...
111111
$isDeleted = $cache->deleteItem('user_'.$userId);
112112

113-
Use the ``Psr\\Cache\\CacheItemPoolInterface::deleteItems`` method to
113+
Use the ``Psr\Cache\CacheItemPoolInterface::deleteItems`` method to
114114
delete several cache items simultaneously (it returns ``true`` only if all the
115115
items have been deleted, even when any or some of them don't exist)::
116116

117117
// ...
118118
$areDeleted = $cache->deleteItems(['category1', 'category2']);
119119

120120
Finally, to remove all the cache items stored in the pool, use the
121-
``Psr\\Cache\\CacheItemPoolInterface::clear`` method (which returns ``true``
121+
``Psr\Cache\CacheItemPoolInterface::clear`` method (which returns ``true``
122122
when all items are successfully deleted)::
123123

124124
// ...
@@ -158,7 +158,7 @@ Pruning Cache Items
158158
Some cache pools do not include an automated mechanism for pruning expired cache items.
159159
For example, the :ref:`FilesystemAdapter <component-cache-filesystem-adapter>` cache
160160
does not remove expired cache items *until an item is explicitly requested and determined to
161-
be expired*, for example, via a call to ``Psr\\Cache\\CacheItemPoolInterface::getItem``.
161+
be expired*, for example, via a call to ``Psr\Cache\CacheItemPoolInterface::getItem``.
162162
Under certain workloads, this can cause stale cache entries to persist well past their
163163
expiration, resulting in a sizable consumption of wasted disk or memory space from excess,
164164
expired cache items.

components/form.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
223223

224224
.. versionadded:: 1.30
225225

226-
The ``Twig\\RuntimeLoader\\FactoryRuntimeLoader`` was introduced in Twig 1.30.
226+
The ``Twig\RuntimeLoader\FactoryRuntimeLoader`` was introduced in Twig 1.30.
227227

228228
The exact details of your `Twig Configuration`_ will vary, but the goal is
229229
always to add the :class:`Symfony\\Bridge\\Twig\\Extension\\FormExtension`
@@ -263,7 +263,7 @@ installed:
263263
$ composer require symfony/translation symfony/config
264264
265265
Next, add the :class:`Symfony\\Bridge\\Twig\\Extension\\TranslationExtension`
266-
to your ``Twig\\Environment`` instance::
266+
to your ``Twig\Environment`` instance::
267267

268268
use Symfony\Bridge\Twig\Extension\TranslationExtension;
269269
use Symfony\Component\Form\Forms;

contributing/code/bc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public methods and properties.
9494
.. caution::
9595

9696
Classes, properties and methods that bear the tag ``@internal`` as well as
97-
the classes located in the various ``*\\Tests\\`` namespaces are an
97+
the classes located in the various ``*\Tests\`` namespaces are an
9898
exception to this rule. They are meant for internal use only and should
9999
not be accessed by your own code.
100100

create_framework/separation_of_concerns.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ simple principle: the logic is about creating the Response associated with a
1313
Request.
1414

1515
Let's create our very own namespace for our framework: ``Simplex``. Move the
16-
request handling logic into its own ``Simplex\\Framework`` class::
16+
request handling logic into its own ``Simplex\Framework`` class::
1717

1818
// example.com/src/Simplex/Framework.php
1919
namespace Simplex;

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ assetic.formula_loader
199199
**Purpose**: Add a formula loader to the current asset manager
200200

201201
A Formula loader is a class implementing
202-
``Assetic\\Factory\Loader\\FormulaLoaderInterface`` interface. This class
202+
``Assetic\Factory\Loader\FormulaLoaderInterface`` interface. This class
203203
is responsible for loading assets from a particular kind of resources (for
204204
instance, twig template). Assetic ships loaders for PHP and Twig templates.
205205

0 commit comments

Comments
 (0)