8000 Don't use double backquotes in the comments · alamirault/symfony-docs@b3bc5ac · GitHub
[go: up one dir, main page]

Skip to content

Commit b3bc5ac

Browse files
committed
Don't use double backquotes in the comments
1 parent 22ea372 commit b3bc5ac

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

components/cache/adapters/array_cache_adapter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ method::
1515
// until the current PHP process finishes)
1616
$defaultLifetime = 0,
1717

18-
// if ``true``, the values saved in the cache are serialized before storing them
18+
// if true, the values saved in the cache are serialized before storing them
1919
$storeSerialized = true,
2020

2121
// the maximum lifetime (in seconds) of the entire cache (after this time, the

event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ could listen to the ``mailer.post_send`` event and change the method's return va
796796
public function onMailerPostSend(AfterSendMailEvent $event)
797797
{
798798
$returnValue = $event->getReturnValue();
799-
// modify the original ``$returnValue`` value
799+
// modify the original $returnValue value
800800

801801
$event->setReturnValue($returnValue);
802802
}

service_container/autowiring.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ adding a service alias:
216216
# ...
217217
218218
# but this fixes it!
219-
# the ``app.rot13.transformer`` service will be injected when
220-
# an ``App\Util\Rot13Transformer`` type-hint is detected
219+
# the "app.rot13.transformer" service will be injected when
220+
# an App\Util\Rot13Transformer type-hint is detected
221221
App\Util\Rot13Transformer: '@app.rot13.transformer'
222222
223223
.. code-block:: xml
@@ -251,8 +251,8 @@ adding a service alias:
251251
->autowire();
252252
253253
// but this fixes it!
254-
// the ``app.rot13.transformer`` service will be injected when
255-
// an ``App\Util\Rot13Transformer`` type-hint is detected
254+
// the "app.rot13.transformer" service will be injected when
255+
// an App\Util\Rot13Transformer type-hint is detected
256256
$services->alias(Rot13Transformer::class, 'app.rot13.transformer');
257257
};
258258
@@ -355,8 +355,8 @@ To fix that, add an :ref:`alias <service-autowiring-alias>`:
355355
356356
$services->set(Rot13Transformer::class);
357357
358-
// the ``App\Util\Rot13Transformer`` service will be injected when
359-
// an ``App\Util\TransformerInterface`` type-hint is detected
358+
// the App\Util\Rot13Transformer service will be injected when
359+
// an App\Util\TransformerInterface type-hint is detected
360360
$services->alias(TransformerInterface::class, Rot13Transformer::class);
361361
};
362362
@@ -526,13 +526,13 @@ the injection::
526526
$services->set(Rot13Transformer::class)->autowire();
527527
$services->set(UppercaseTransformer::class)->autowire();
528528
529-
// the ``App\Util\UppercaseTransformer`` service will be
530-
// injected when an ``App\Util\TransformerInterface``
531-
// type-hint for a ``$shoutyTransformer`` argument is detected.
529+
// the App\Util\UppercaseTransformer service will be
530+
// injected when an App\Util\TransformerInterface
531+
// type-hint for a $shoutyTransformer argument is detected.
532532
$services->alias(TransformerInterface::class.' $shoutyTransformer', UppercaseTransformer::class);
533533
534534
// If the argument used for injection does not match, but the
535-
// type-hint still matches, the ``App\Util\Rot13Transformer``
535+
// type-hint still matches, the App\Util\Rot13Transformer
536536
// service will be injected.
537537
$services->alias(TransformerInterface::class, Rot13Transformer::class);
538538

testing.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,10 @@ In the above example, the test validates that the HTTP response was successful
566566
and the request body contains a ``<h1>`` tag with ``"Hello world"``.
567567

568568
The ``request()`` method also returns a crawler, which you can use to
569-
create more complex assertions in your tests::
569+
create more complex assertions in your tests (e.g. to count the number of page
570+
elements that match a given CSS selector)::
570571

571572
$crawler = $client->request('GET', '/post/hello-world');
572-
573-
// for instance, count the number of ``.comment`` elements on the page
574573
$this->assertCount(4, $crawler->filter('.comment'));
575574

576575
You can learn more about the crawler in :doc:`/testing/dom_crawler`.

0 commit comments

Comments
 (0)
0