Skip to content

Commit 0f74d76

Browse files
committed
use :: instead of .. code-block:: php
1 parent 6b1a350 commit 0f74d76

File tree

8 files changed

+21
-33
lines changed

8 files changed

+21
-33
lines changed

components/property_info.rst

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ both provide list and type information it is probably better that:
9292
just mapped properties) are returned.
9393
* The :class:`Symfony\\Bridge\\Doctrine\\PropertyInfo\\DoctrineExtractor`
9494
has priority for type information so that entity metadata is used instead
95-
of type-hinting to provide more accurate type information.
96-
97-
.. code-block:: php
95+
of type-hinting to provide more accurate type information::
9896

9997
use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
10098
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -357,21 +355,7 @@ ReflectionExtractor
357355
Using PHP reflection, the :class:`Symfony\\Component\\PropertyInfo\\Extractor\\ReflectionExtractor`
358356
provides list, type and access information from setter and accessor methods.
359357
It can also give the type of a property, and if it is initializable through the
360-
constructor. It supports return and scalar types for PHP 7.
361-
362-
.. note::
363-
364-
When using the Symfony framework, this service is automatically registered
365-
when the ``property_info`` feature is enabled:
366-
367-
.. code-block:: yaml
368-
369-
# config/packages/framework.yaml
370-
framework:
371-
property_info:
372-
enabled: true
373-
374-
.. code-block:: php
358+
constructor. It supports return and scalar types for PHP 7::
375359

376360
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
377361

@@ -390,6 +374,18 @@ constructor. It supports return and scalar types for PHP 7.
390374
// Initializable information
391375
$reflectionExtractor->isInitializable($class, $property);
392376

377+
.. note::
378+
379+
When using the Symfony framework, this service is automatically registered
380+
when the ``property_info`` feature is enabled:
381+
382+
.. code-block:: yaml
383+
384+
# config/packages/framework.yaml
385+
framework:
386+
property_info:
387+
enabled: true
388+
393389
PhpDocExtractor
394390
~~~~~~~~~~~~~~~
395391

components/security/authorization.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\Authentica
101101
voter supports the attributes ``IS_AUTHENTICATED_FULLY``, ``IS_AUTHENTICATED_REMEMBERED``,
102102
and ``IS_AUTHENTICATED_ANONYMOUSLY`` and grants access based on the current
103103
level of authentication, i.e. is the user fully authenticated, or only based
104-
on a "remember-me" cookie, or even authenticated anonymously?
105-
106-
.. code-block:: php
104+
on a "remember-me" cookie, or even authenticated anonymously?::
107105

108106
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
109107
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;

reference/forms/types/button.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ Given this translation message:
7474
# translations/messages.en.yml
7575
form.order.submit_to_company: 'Send an order to %company%'
7676
77-
You can specify the placeholder values as follows:
78-
79-
.. code-block:: php
77+
You can specify the placeholder values as follows::
8078

8179
use Symfony\Component\Form\Extension\Core\Type\ButtonType;
8280
// ...

reference/forms/types/options/attr_translation_parameters.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Given this translation message:
2020
form.order.id.placeholder: 'Enter unique identifier of the order to %company%'
2121
form.order.id.title: 'This will be the reference in communications with %company%'
2222

23-
You can specify the placeholder values as follows:
23+
You can specify the placeholder values as follows::
2424

2525
.. code-block:: php
2626

reference/forms/types/options/help_translation_parameters.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Given this translation message:
1818
# translations/messages.en.yml
1919
form.order.id.help: 'This will be the reference in communications with %company%'
2020

21-
You can specify the placeholder values as follows:
21+
You can specify the placeholder values as follows::
2222

2323
.. code-block:: php
2424

reference/forms/types/options/label_translation_parameters.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Given this translation message:
1818
# translations/messages.en.yml
1919
form.order.id: 'Identifier of the order to %company%'
2020

21-
You can specify the placeholder values as follows:
21+
You can specify the placeholder values as follows::
2222

2323
.. code-block:: php
2424

reference/forms/types/reset.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ Given this translation message:
6464
# translations/messages.en.yml
6565
form.order.reset: 'Reset an order to %company%'
6666
67-
You can specify the placeholder values as follows:
68-
69-
.. code-block:: php
67+
You can specify the placeholder values as follows::
7068

7169
use Symfony\Component\Form\Extension\Core\Type\ResetType;
7270
// ...

reference/forms/types/submit.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ Given this translation message:
7777
# translations/messages.en.yml
7878
form.order.submit_to_company: 'Send an order to %company%'
7979
80-
You can specify the placeholder values as follows:
81-
82-
.. code-block:: php
80+
You can specify the placeholder values as follows::
8381

8482
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
8583
// ...

0 commit comments

Comments
 (0)