Skip to content

Commit 6b19707

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Fixed syntax errors on 4.4
2 parents a91de90 + 5398a93 commit 6b19707

35 files changed

+92
-68
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ you can write::
7878
$truncatedMessage = $formatter->truncate($message, 7);
7979
$output->writeln($truncatedMessage);
8080

81-
And the output will be::
81+
And the output will be:
82+
83+
.. code-block:: text
8284
8385
This is...
8486
@@ -93,7 +95,9 @@ from the end of the string::
9395

9496
$truncatedMessage = $formatter->truncate($message, -5);
9597

96-
This will result in::
98+
This will result in:
99+
100+
.. code-block:: text
97101
98102
This is a very long message, which should be trun...
99103

components/console/helpers/table.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ You can add a table separator anywhere in the output by passing an instance of
7272
You can optionally display titles at the top and the bottom of the table::
7373

7474
// ...
75-
$table->setHeaderTitle('Books')
76-
$table->setFooterTitle('Page 1/2')
75+
$table->setHeaderTitle('Books');
76+
$table->setFooterTitle('Page 1/2');
7777
$table->render();
7878

7979
.. code-block:: terminal

components/dom_crawler.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ You can virtually set and get values on the form::
520520
// where "registration" is its own array
521521
$values = $form->getPhpValues();
522522

523-
To work with multi-dimensional fields::
523+
To work with multi-dimensional fields:
524+
525+
.. code-block:: html
524526

525527
<form>
526528
<input name="multi[]"/>

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ determine which instance is passed.
238238
$containerBuilder->addCompilerPass(new AddEventAliasesPass([
239239
\AcmeFooActionEvent::class => 'acme.foo.action',
240240
]));
241-
$containerBuilder->addCompilerPass(new RegisterListenersPass(), PassConfig::TYPE_BEFORE_REMOVING)
241+
$containerBuilder->addCompilerPass(new RegisterListenersPass(), PassConfig::TYPE_BEFORE_REMOVING);
242242

243243
$containerBuilder->register('event_dispatcher', EventDispatcher::class);
244244

components/filesystem.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ absolute paths and returns the relative path from the second path to the first o
252252
'/var/lib/symfony/src/Symfony/Component'
253253
);
254254
// returns 'videos/'
255-
$filesystem->makePathRelative('/tmp/videos', '/tmp')
255+
$filesystem->makePathRelative('/tmp/videos', '/tmp');
256256

257257
``mirror``
258258
~~~~~~~~~~

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ represented by a PHP callable instead of a string::
584584
header in the response::
585585

586586
// disables FastCGI buffering in nginx only for this response
587-
$response->headers->set('X-Accel-Buffering', 'no')
587+
$response->headers->set('X-Accel-Buffering', 'no');
588588

589589
.. _component-http-foundation-serving-files:
590590

components/intl.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The Intl Component
1111
.. caution::
1212

1313
The replacement layer is limited to the ``en`` locale. If you want to use
14-
other locales, you should `install the intl extension`_. There is no conflict
14+
other locales, you should `install the intl extension`_. There is no conflict
1515
between the two because, even if you use the extension, this package can still
1616
be useful to access the ICU data.
1717

@@ -211,9 +211,9 @@ Locales
211211
~~~~~~~
212212

213213
A locale is the combination of a language, a region and some parameters that
214-
define the interface preferences of the user. For example, "Chinese" is the
215-
language and ``zh_Hans_MO`` is the locale for "Chinese" (language) + "Simplified"
216-
(script) + "Macau SAR China" (region). The ``Locales`` class provides access to
214+
define the interface preferences of the user. For example, "Chinese" is the
215+
language and ``zh_Hans_MO`` is the locale for "Chinese" (language) + "Simplified"
216+
(script) + "Macau SAR China" (region). The ``Locales`` class provides access to
217217
the name of all locales::
218218

219219
use Symfony\Component\Intl\Locales;
@@ -323,7 +323,7 @@ translate into any locale with the ``getName()`` method shown earlier::
323323
The reverse lookup is also possible thanks to the ``getCountryCode()`` method,
324324
which returns the code of the country where the given timezone ID belongs to::
325325

326-
$countryCode = Timezones::getCountryCode('America/Vancouver')
326+
$countryCode = Timezones::getCountryCode('America/Vancouver');
327327
// => $countryCode = 'CA' (CA = Canada)
328328

329329
The `UTC/GMT time offsets`_ of all timezones are provided by ``getRawOffset()``

components/lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ method can be safely called repeatedly, even if the lock is already acquired.
5858

5959
Unlike other implementations, the Lock Component distinguishes lock
6060
instances even when they are created for the same resource. It means that for
61-
a given scope and resource one lock instance can be acquired multiple times.
61+
a given scope and resource one lock instance can be acquired multiple times.
6262
If a lock has to be used by several services, they should share the same ``Lock``
6363
instance returned by the ``LockFactory::createLock`` method.
6464

@@ -230,7 +230,7 @@ Lock will be released automatically as soon as one process finishes::
230230
sleep(30);
231231
} else {
232232
// Child process
233-
echo 'The lock will be released now.'
233+
echo 'The lock will be released now.';
234234
exit(0);
235235
}
236236
// ...

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ the closure::
507507

508508
$resolver->setDefault('host', function (Options $options, $previousValue) {
509509
if ('ssl' === $options['encryption']) {
510-
return 'secure.example.org'
510+
return 'secure.example.org';
511511
}
512512

513513
// Take default value configured in the base class

components/security/authorization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ expressions have access to a number of
207207

208208
$expression = new Expression(
209209
'"ROLE_ADMIN" in role_names or (not is_anonymous() and user.isSuperAdmin())'
210-
)
210+
);
211211

212212
$vote = $expressionVoter->vote($token, $object, [$expression]);
213213

0 commit comments

Comments
 (0)