Skip to content

Commit 4b9e4b3

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Fix indention No explicit use of code-block:: php
2 parents 5883f93 + 1b884c3 commit 4b9e4b3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/validator/resources.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ prefixed classes included in doc block comments (``/** ... */``). For example::
100100
class User
101101
{
102102
/**
103-
* @Assert\NotBlank
104-
*/
103+
* @Assert\NotBlank
104+
*/
105105
protected $name;
106106
}
107107

translation/message_format.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Usage of this string is the same as with variables and select::
230230

231231
You can also set an ``offset`` variable to determine whether the
232232
pluralization should be offset (e.g. in sentences like ``You and # other people``
233-
/ ``You and # other person``).
233+
/ ``You and # other person``).
234234

235235
.. tip::
236236

@@ -239,23 +239,23 @@ Usage of this string is the same as with variables and select::
239239

240240
.. code-block:: text
241241
242-
{gender_of_host, select,
242+
{gender_of_host, select,
243243
female {
244-
{num_guests, plural, offset:1
244+
{num_guests, plural, offset:1
245245
=0 {{host} does not give a party.}
246246
=1 {{host} invites {guest} to her party.}
247247
=2 {{host} invites {guest} and one other person to her party.}
248248
other {{host} invites {guest} and # other people to her party.}}
249249
}
250250
male {
251-
{num_guests, plural, offset:1
251+
{num_guests, plural, offset:1
252252
=0 {{host} does not give a party.}
253253
=1 {{host} invites {guest} to his party.}
254254
=2 {{host} invites {guest} and one other person to his party.}
255255
other {{host} invites {guest} and # other people to his party.}}
256256
}
257257
other {
258-
{num_guests, plural, offset:1
258+
{num_guests, plural, offset:1
259259
=0 {{host} does not give a party.}
260260
=1 {{host} invites {guest} to their party.}
261261
=2 {{host} invites {guest} and one other person to their party.}
@@ -377,9 +377,8 @@ using the :phpclass:`IntlDateFormatter`:
377377
];
378378
379379
The "function statement" for the ``time`` and ``date`` functions can be one of
380-
short, medium, long or full, as documented on PHP.net.
381-
382-
.. code-block:: php
380+
``short``, ``medium``, ``long`` or ``full``, which correspond to the
381+
`constants defined by the IntlDateFormatter class`_::
383382

384383
// prints "Published at Jan 25, 2019 - 11:30 AM"
385384
echo $translator->trans('published_at', ['publication_date' => new \DateTime('2019-01-25 11:30:00')]);
@@ -441,3 +440,4 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
441440
.. _`ICU MessageFormat`: http://userguide.icu-project.org/formatparse/messages
442441
.. _`switch statement`: https://php.net/control-structures.switch
443442
.. _`Language Plural Rules`: http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
443+
.. _`constants defined by the IntlDateFormatter class`: https://php.net/manual/en/class.intldateformatter.php

0 commit comments

Comments
 (0)