Skip to content

Commit e071c9a

Browse files
committed
minor #11504 fix indention (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- fix indention <!-- 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 ------- 5218163 fix indention
2 parents e040e48 + 5218163 commit e071c9a

29 files changed

+143
-142
lines changed

best_practices/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ view layer:
143143
{{ form_widget(form) }}
144144

145145
<input type="submit" value="Create"
146-
class="btn btn-default pull-right"/>
146+
class="btn btn-default pull-right"/>
147147
{{ form_end(form) }}
148148

149149
Validation

bundles/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ allow users to configure it with some configuration that looks like this:
8181
xsi:schemaLocation="http://symfony.com/schema/dic/services
8282
https://symfony.com/schema/dic/services/services-1.0.xsd">
8383
84-
<acme-social:config>
85-
<acme-social:twitter client-id="123" client-secret="your_secret"/>
86-
</acme-social:config>
84+
<acme-social:config>
85+
<acme-social:twitter client-id="123" client-secret="your_secret"/>
86+
</acme-social:config>
8787
88-
<!-- ... -->
88+
<!-- ... -->
8989
</container>
9090
9191
.. code-block:: php

components/cache/adapters/pdo_doctrine_dbal_adapter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PDO & Doctrine DBAL Cache Adapter
99

1010
.. versionadded:: 3.2
1111

12-
The PDO & Doctrine DBAL adapter was introduced in Symfony 3.2.
12+
The PDO & Doctrine DBAL adapter was introduced in Symfony 3.2.
1313

1414
This adapter stores the cache items in an SQL database. It requires a `PDO`_,
1515
`Doctrine DBAL Connection`_, or `Data Source Name (DSN)`_ as its first parameter, and

components/cache/adapters/proxy_adapter.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ 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-
$psr6CachePool = \\ create your own cache pool instance that implements the PSR-6
19-
\\ interface `CacheItemPoolInterface`
18+
\\ create your own cache pool instance that implements the PSR-6
19+
\\ interface `CacheItemPoolInterface`
20+
$psr6CachePool = ...
2021

2122
$cache = new ProxyAdapter(
2223

components/console/console_arguments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Have a look at the following command that has three options::
3939

4040
protected function execute(InputInterface $input, OutputInterface $output)
4141
{
42-
// ...
42+
// ...
4343
}
4444
}
4545

components/console/single_command_tool.rst

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@ When building a command line tool, you may not need to provide several commands.
88
In such case, having to pass the command name each time is tedious. Fortunately,
99
it is possible to remove this need by declaring a single command application::
1010

11-
#!/usr/bin/env php
12-
<?php
13-
require __DIR__.'/vendor/autoload.php';
14-
15-
use Symfony\Component\Console\Application;
16-
use Symfony\Component\Console\Input\InputArgument;
17-
use Symfony\Component\Console\Input\InputInterface;
18-
use Symfony\Component\Console\Input\InputOption;
19-
use Symfony\Component\Console\Output\OutputInterface;
20-
21-
(new Application('echo', '1.0.0'))
22-
->register('echo')
23-
->addArgument('foo', InputArgument::OPTIONAL, 'The directory')
24-
->addOption('bar', null, InputOption::VALUE_REQUIRED)
25-
->setCode(function(InputInterface $input, OutputInterface $output) {
26-
// output arguments and options
27-
})
28-
->getApplication()
29-
->setDefaultCommand('echo', true) // Single command application
30-
->run();
11+
#!/usr/bin/env php
12+
<?php
13+
require __DIR__.'/vendor/autoload.php';
14+
15+
use Symfony\Component\Console\Application;
16+
use Symfony\Component\Console\Input\InputArgument;
17+
use Symfony\Component\Console\Input\InputInterface;
18+
use Symfony\Component\Console\Input\InputOption;
19+
use Symfony\Component\Console\Output\OutputInterface;
20+
21+
(new Application('echo', '1.0.0'))
22+
->register('echo')
23+
->addArgument('foo', InputArgument::OPTIONAL, 'The directory')
24+
->addOption('bar', null, InputOption::VALUE_REQUIRED)
25+
->setCode(function(InputInterface $input, OutputInterface $output) {
26+
// output arguments and options
27+
})
28+
->getApplication()
29+
->setDefaultCommand('echo', true) // Single command application
30+
->run();
3131

3232
The method :method:`Symfony\\Component\\Console\\Application::setDefaultCommand`
3333
accepts a boolean as second parameter. If true, the command ``echo`` will then
3434
always be used, without having to pass its name.
3535

3636
Of course, you can still register a command as usual::
3737

38-
#!/usr/bin/env php
39-
<?php
40-
require __DIR__.'/vendor/autoload.php';
38+
#!/usr/bin/env php
39+
<?php
40+
require __DIR__.'/vendor/autoload.php';
4141

42-
use Acme\Command\DefaultCommand;
43-
use Symfony\Component\Console\Application;
42+
use Acme\Command\DefaultCommand;
43+
use Symfony\Component\Console\Application;
4444

45-
$application = new Application('echo', '1.0.0');
46-
$command = new DefaultCommand();
45+
$application = new Application('echo', '1.0.0');
46+
$command = new DefaultCommand();
4747

48-
$application->add($command);
48+
$application->add($command);
4949

50-
$application->setDefaultCommand($command->getName(), true);
51-
$application->run();
50+
$application->setDefaultCommand($command->getName(), true);
51+
$application->run();

components/dependency_injection/compilation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ compilation::
325325
{
326326
public function process(ContainerBuilder $container)
327327
{
328-
// ... do something during the compilation
328+
// ... do something during the compilation
329329
}
330330

331331
// ...
@@ -379,7 +379,7 @@ class implementing the ``CompilerPassInterface``::
379379
{
380380
public function process(ContainerBuilder $container)
381381
{
382-
// ... do something during the compilation
382+
// ... do something during the compilation
383383
}
384384
}
385385

components/dom_crawler.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ context of the crawler::
234234
// DO THIS: specify the parent tag too
235235
$subCrawler = $parentCrawler->filterXPath('parent/sub-tag/sub-child-tag');
236236
$subCrawler = $parentCrawler->filterXPath('node()/sub-tag/sub-child-tag');
237-
});
237+
});
238238

239239
Adding the Content
240240
~~~~~~~~~~~~~~~~~~
@@ -338,30 +338,30 @@ 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"
344-
]
341+
0 => "100",
342+
1 => "101",
343+
2 => "102",
344+
]
345345
*/
346346

347347
$crawler->evaluate('substring-after(//span[contains(@id, "article-")]/@id, "-")');
348348
/* array:1 [
349-
0 => "100"
350-
]
349+
0 => "100",
350+
]
351351
*/
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
358-
]
355+
0 => 1.0,
356+
1 => 1.0,
357+
2 => 1.0,
358+
]
359359
*/
360360

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

367367
$crawler->evaluate('//span[1]');

components/filesystem/lock_handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PHP code will wait indefinitely until the lock is released by another process.
8282

8383
use Symfony\Component\Filesystem\LockHandler;
8484

85-
if (!(new LockHandler('hello.lock'))->lock()) {
85+
if (!(new LockHandler('hello.lock'))->lock()) {
8686
// the resource "hello" is already locked by another process
8787

8888
return 0;

components/serializer.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -856,11 +856,11 @@ because it is deeper than the configured maximum depth of 2::
856856
$result = [
857857
'foo' => 'level1',
858858
'child' => [
859-
'foo' => 'level2',
860-
'child' => [
861-
'child' => null,
862-
],
859+
'foo' => 'level2',
860+
'child' => [
861+
'child' => null,
863862
],
863+
],
864864
];
865865
*/
866866

@@ -1031,7 +1031,7 @@ parameter of the ``ObjectNormalizer``::
10311031

10321032
$obj = $serializer->denormalize(
10331033
['inner' => ['foo' => 'foo', 'bar' => 'bar'], 'date' => '1988/01/21'],
1034-
'Acme\ObjectOuter'
1034+
'Acme\ObjectOuter'
10351035
);
10361036

10371037
dump($obj->getInner()->foo); // 'foo'

0 commit comments

Comments
 (0)