Skip to content

Commit 7f6bbc7

Browse files
committed
fix indention
1 parent e071c9a commit 7f6bbc7

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

security/custom_authentication_provider.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,10 @@ the ``addConfiguration()`` method::
555555

556556
public function addConfiguration(NodeDefinition $node)
557557
{
558-
$node
559-
->children()
560-
->scalarNode('lifetime')->defaultValue(300)
561-
->end();
558+
$node
559+
->children()
560+
->scalarNode('lifetime')->defaultValue(300)
561+
->end();
562562
}
563563
}
564564

security/multiple_guard_authenticators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This is how your security configuration can look in action:
2424
2525
# app/config/security.yml
2626
security:
27-
# ...
27+
# ...
2828
firewalls:
2929
default:
3030
anonymous: ~

service_container/3.3-di-changes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ Now you're ready to default all services to be private:
637637
# ...
638638
639639
services:
640-
_defaults:
641-
autowire: true
642-
autoconfigure: true
643-
+ public: false
640+
_defaults:
641+
autowire: true
642+
autoconfigure: true
643+
+ public: false
644644
645645
Thanks to this, any services created in this file cannot be fetched directly from
646646
the container. But, since the old service id's are aliases in a separate file (``legacy_aliases.yml``),

service_container/autowiring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Now that you have an interface, you should use this as your type-hint::
288288
{
289289
public function __construct(TransformerInterface $transformer)
290290
{
291-
// ...
291+
// ...
292292
}
293293

294294
// ...

service_container/debug.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To see a list of all of the available types that can be used for autowiring, run
2626
2727
.. versionadded:: 3.4
2828

29-
The ``debug:autowiring`` command was introduced in Symfony 3.3.
29+
The ``debug:autowiring`` command was introduced in Symfony 3.3.
3030

3131
Detailed Info about a Single Service
3232
------------------------------------
@@ -43,4 +43,4 @@ its id:
4343
4444
.. versionadded:: 3.3
4545

46-
The ``--show-arguments`` option was introduced in Symfony 3.3.
46+
The ``--show-arguments`` option was introduced in Symfony 3.3.

service_container/injection_types.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ service container configuration:
4141

4242
.. code-block:: yaml
4343
44-
services:
44+
services:
4545
# ...
4646
4747
AppBundle\Mail\NewsletterManager:
@@ -120,7 +120,7 @@ that accepts the dependency::
120120

121121
.. code-block:: yaml
122122
123-
services:
123+
services:
124124
# ...
125125
126126
app.newsletter_manager:
@@ -192,7 +192,7 @@ Another possibility is just setting public fields of the class directly::
192192

193193
.. code-block:: yaml
194194
195-
services:
195+
services:
196196
# ...
197197
198198
app.newsletter_manager:

templating/PHP.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ form is rendered.
482482
'AppBundle:Form',
483483
],
484484
],
485-
],
485+
],
486486
487-
// ...
487+
// ...
488488
]);
489489
490490
By default, the PHP engine uses a *div* layout when rendering forms. Some people,

templating/global_variables.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ This is possible inside your ``app/config/config.yml`` file:
3939
4040
// app/config/config.php
4141
$container->loadFromExtension('twig', [
42-
// ...
43-
'globals' => [
44-
'ga_tracking' => 'UA-xxxxx-x',
45-
],
42+
// ...
43+
'globals' => [
44+
'ga_tracking' => 'UA-xxxxx-x',
45+
],
4646
]);
4747
4848
Now, the variable ``ga_tracking`` is available in all Twig templates:
@@ -95,9 +95,9 @@ system, which lets you isolate or reuse the value:
9595
9696
// app/config/config.php
9797
$container->loadFromExtension('twig', [
98-
'globals' => [
99-
'ga_tracking' => '%ga_tracking%',
100-
],
98+
'globals' => [
99+
'ga_tracking' => '%ga_tracking%',
100+
],
101101
]);
102102
103103
The same variable is available exactly as before.
@@ -151,8 +151,8 @@ This should feel familiar, as it's the same syntax you use in service configurat
151151
152152
// app/config/config.php
153153
$container->loadFromExtension('twig', [
154-
// ...
155-
'globals' => [
156-
'user_management' => '@AppBundle\Service\UserManagement',
157-
],
154+
// ...
155+
'globals' => [
156+
'user_management' => '@AppBundle\Service\UserManagement',
157+
],
158158
]);

testing/http_authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ firewall, but only in the configuration file used by tests:
4040
<security:config>
4141
<!-- replace 'main' by the name of your own firewall -->
4242
<security:firewall name="main">
43-
<security:http-basic/>
44-
</security:firewall>
43+
<security:http-basic/>
44+
</security:firewall>
4545
</security:config>
4646
4747
.. code-block:: php

0 commit comments

Comments
 (0)