Skip to content

Commit dcda8ce

Browse files
committed
minor #11506 more indention fixes (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- more indention fixes <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 7f6bbc7 fix indention
2 parents 942f05f + 7f6bbc7 commit dcda8ce

19 files changed

+90
-90
lines changed

cache.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ You can also create more customized pools. All you need is an adapter:
209209
210210
<framework:config>
211211
<framework:cache default_memcached_provider="memcached://localhost">
212-
<framework:pool name="my_cache_pool" adapter="cache.adapter.array"/>
213-
<framework:pool name="cache.acme" adapter="cache.adapter.memcached"/>
214-
<framework:pool name="cache.foobar" adapter="cache.adapter.memcached" provider="memcached://user:password@example.com"/>
212+
<framework:pool name="my_cache_pool" adapter="cache.adapter.array"/>
213+
<framework:pool name="cache.acme" adapter="cache.adapter.memcached"/>
214+
<framework:pool name="cache.foobar" adapter="cache.adapter.memcached" provider="memcached://user:password@example.com"/>
215215
</framework:cache>
216216
</framework:config>
217217
</container>
@@ -281,11 +281,11 @@ For advanced configurations it could sometimes be useful to use a pool as an ada
281281
282282
<framework:config>
283283
<framework:cache app="my_cache_pool">
284-
<framework:pool name="my_cache_pool" adapter="cache.adapter.memcached" provider="memcached://user:password@example.com"/>
285-
<framework:pool name="cache.short_cache" adapter="my_cache_pool" default_lifetime="604800"/>
286-
<framework:pool name="cache.long_cache" adapter="my_cache_pool" default_lifetime="604800"/>
287-
<!-- "cache.adapter.filesystem" is the default for "cache.app" -->
288-
<framework:pool name="my_configured_app_cache" adapter="cache.adapter.filesystem" default_lifetime="3600"/>
284+
<framework:pool name="my_cache_pool" adapter="cache.adapter.memcached" provider="memcached://user:password@example.com"/>
285+
<framework:pool name="cache.short_cache" adapter="my_cache_pool" default_lifetime="604800"/>
286+
<framework:pool name="cache.long_cache" adapter="my_cache_pool" default_lifetime="604800"/>
287+
<!-- "cache.adapter.filesystem" is the default for "cache.app" -->
288+
<framework:pool name="my_configured_app_cache" adapter="cache.adapter.filesystem" default_lifetime="3600"/>
289289
</framework:cache>
290290
</framework:config>
291291
</container>
@@ -359,7 +359,7 @@ and use that when configuring the pool.
359359
360360
<framework:config>
361361
<framework:cache>
362-
<framework:pool name="cache.my_redis" adapter="cache.adapter.redis" provider="app.my_custom_redis_provider"/>
362+
<framework:pool name="cache.my_redis" adapter="cache.adapter.redis" provider="app.my_custom_redis_provider"/>
363363
</framework:cache>
364364
</framework:config>
365365
@@ -437,8 +437,8 @@ case the value needs to be recalculated.
437437
438438
<framework:config>
439439
<framework:cache default_memcached_provider="memcached://localhost">
440-
<framework:pool name="my_cache_pool" adapter="app.my_cache_chain_adapter"/>
441-
<framework:pool name="cache.my_redis" adapter="cache.adapter.redis" provider="redis://user:password@example.com"/>
440+
<framework:pool name="my_cache_pool" adapter="app.my_cache_chain_adapter"/>
441+
<framework:pool name="cache.my_redis" adapter="cache.adapter.redis" provider="redis://user:password@example.com"/>
442442
</framework:cache>
443443
</framework:config>
444444

components/cache/adapters/proxy_adapter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ and optionally a namespace and default cache lifetime as its second and third pa
1515
use Psr\Cache\CacheItemPoolInterface;
1616
use Symfony\Component\Cache\Adapter\ProxyAdapter;
1717

18-
\\ create your own cache pool instance that implements the PSR-6
19-
\\ interface `CacheItemPoolInterface`
18+
// create your own cache pool instance that implements
19+
// the PSR-6 CacheItemPoolInterface
2020
$psr6CachePool = ...
2121

2222
$cache = new ProxyAdapter(

components/dom_crawler.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -338,31 +338,31 @@ This behavior is best illustrated with examples::
338338

339339
$crawler->filterXPath('//span[contains(@id, "article-")]')->evaluate('substring-after(@id, "-")');
340340
/* array:3 [
341-
0 => "100",
342-
1 => "101",
343-
2 => "102",
341+
0 => "100"
342+
1 => "101"
343+
2 => "102"
344344
]
345-
*/
345+
*/
346346

347347
$crawler->evaluate('substring-after(//span[contains(@id, "article-")]/@id, "-")');
348348
/* array:1 [
349-
0 => "100",
349+
0 => "100"
350350
]
351-
*/
351+
*/
352352

353353
$crawler->filterXPath('//span[@class="article"]')->evaluate('count(@id)');
354354
/* array:3 [
355-
0 => 1.0,
356-
1 => 1.0,
357-
2 => 1.0,
355+
0 => 1.0
356+
1 => 1.0
357+
2 => 1.0
358358
]
359-
*/
359+
*/
360360

361361
$crawler->evaluate('count(//span[@class="article"])');
362362
/* array:1 [
363-
0 => 3.0,
363+
0 => 3.0
364364
]
365-
*/
365+
*/
366366

367367
$crawler->evaluate('//span[1]');
368368
// A Symfony\Component\DomCrawler\Crawler instance

components/translation/usage.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -453,19 +453,19 @@ loaded/dumped when using this component inside a Symfony application:
453453
<?xml version="1.0" encoding="UTF-8"?>
454454
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0"
455455
srcLang="fr-FR" trgLang="en-US">
456-
<file id="messages.en_US">
457-
<unit id="LCa0a2j">
458-
<notes>
459-
<note category="state">new</note>
460-
<note category="approved">true</note>
461-
<note category="section" priority="1">user login</note>
462-
</notes>
463-
<segment>
464-
<source>original-content</source>
465-
<target>translated-content</target>
466-
</segment>
467-
</unit>
468-
</file>
456+
<file id="messages.en_US">
457+
<unit id="LCa0a2j">
458+
<notes>
459+
<note category="state">new</note>
460+
<note category="approved">true</note>
461+
<note category="section" priority="1">user login</note>
462+
</notes>
463+
<segment>
464+
<source>original-content</source>
465+
<target>translated-content</target>
466+
</segment>
467+
</unit>
468+
</file>
469469
</xliff>
470470
471471
When using the standalone Translation component, call the ``setMetadata()``

console/command_in_controller.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Run this command from inside your controller via::
4242
$application->setAutoExit(false);
4343

4444
$input = new ArrayInput([
45-
'command' => 'swiftmailer:spool:send',
46-
// (optional) define the value of command arguments
47-
'fooArgument' => 'barValue',
48-
// (optional) pass options to the command
49-
'--message-limit' => $messages,
45+
'command' => 'swiftmailer:spool:send',
46+
// (optional) define the value of command arguments
47+
'fooArgument' => 'barValue',
48+
// (optional) pass options to the command
49+
'--message-limit' => $messages,
5050
]);
5151

5252
// You can use NullOutput() if you don't need the output

event_dispatcher.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ listen to the same ``kernel.exception`` event::
152152
{
153153
// return the subscribed events, their methods and priorities
154154
return [
155-
KernelEvents::EXCEPTION => [
156-
['processException', 10],
157-
['logException', 0],
158-
['notifyException', -10],
159-
]
155+
KernelEvents::EXCEPTION => [
156+
['processException', 10],
157+
['logException', 0],
158+
['notifyException', -10],
159+
],
160160
];
161161
}
162162

form/dynamic_form_modification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ how to customize your form based on three common use-cases:
1010
1) :ref:`form-events-underlying-data`
1111

1212
Example: you have a "Product" form and need to modify/add/remove a field
13-
based on the data on the underlying Product being edited.
13+
based on the data on the underlying Product being edited.
1414

1515
2) :ref:`form-events-user-data`
1616

form/without_class.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ but here's a short example::
8787
public function buildForm(FormBuilderInterface $builder, array $options)
8888
{
8989
$builder
90-
->add('firstName', TextType::class, [
91-
'constraints' => new Length(['min' => 3]),
92-
])
93-
->add('lastName', TextType::class, [
94-
'constraints' => [
95-
new NotBlank(),
96-
new Length(['min' => 3]),
97-
],
98-
])
90+
->add('firstName', TextType::class, [
91+
'constraints' => new Length(['min' => 3]),
92+
])
93+
->add('lastName', TextType::class, [
94+
'constraints' => [
95+
new NotBlank(),
96+
new Length(['min' => 3]),
97+
],
98+
])
9999
;
100100
}
101101

frontend/assetic/uglifyjs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ helper:
296296
.. code-block:: html+twig
297297

298298
{% stylesheets 'bundles/App/css/*' filter='uglifycss' filter='cssrewrite' %}
299-
<link rel="stylesheet" href="{{ asset_url }}"/>
299+
<link rel="stylesheet" href="{{ asset_url }}"/>
300300
{% endstylesheets %}
301301
302302
Just like with the ``uglifyjs2`` filter, if you prefix the filter name with

introduction/http_fundamentals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ like this:
121121
Content-Type: text/html
122122
123123
<html>
124-
<!-- ... HTML for the xkcd comic -->
124+
<!-- ... HTML for the xkcd comic -->
125125
</html>
126126
127127
The HTTP response contains the requested resource (the HTML content in this

0 commit comments

Comments
 (0)