Skip to content

Commit 0aca495

Browse files
minor symfony#20364 CS: apply rules (keradus)
This PR was squashed before being merged into the 2.7 branch (closes symfony#20364). Discussion ---------- CS: apply rules | Q | A | | --- | --- | | Branch? | 2.7 | | Bug fix? | no | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Tests pass? | n/a | | Fixed tickets | - | | License | MIT | | Doc PR | - | Commits ------- 22d4e15 CS: apply rules
2 parents df130a3 + 22d4e15 commit 0aca495

File tree

68 files changed

+185
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+185
-200
lines changed

src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public function configureOptions(OptionsResolver $resolver)
138138
$type = $this;
139139

140140
$choiceLoader = function (Options $options) use ($choiceListFactory, &$choiceLoaders, $type) {
141-
142141
// Unless the choices are given explicitly, load them on demand
143142
if (null === $options['choices']) {
144143
$hash = null;

src/Symfony/Bridge/Doctrine/Tests/DependencyInjection/DoctrineExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function setUp()
4444
$this->extension->expects($this->any())
4545
->method('getObjectManagerElementName')
4646
->will($this->returnCallback(function ($name) {
47-
return 'doctrine.orm.'.$name;
47+
return 'doctrine.orm.'.$name;
4848
}));
4949
}
5050

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function configure()
6060
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (text or json)', 'text'),
6161
))
6262
->setDescription('Shows a list of twig functions, filters, globals and tests')
63-
->setHelp(<<<EOF
63+
->setHelp(<<<'EOF'
6464
The <info>%command.name%</info> command outputs a list of twig functions,
6565
filters, globals and tests. Output can be filtered with an optional argument.
6666

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function configure()
6161
->setDescription('Lints a template and outputs encountered errors')
6262
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
6363
->addArgument('filename', InputArgument::IS_ARRAY)
64-
->setHelp(<<<EOF
64+
->setHelp(<<<'EOF'
6565
The <info>%command.name%</info> command lints a template and outputs to STDOUT
6666
the first encountered syntax error.
6767

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
4040
))
4141
->setDescription('Dumps the current configuration for an extension')
42-
->setHelp(<<<EOF
42+
->setHelp(<<<'EOF'
4343
The <info>%command.name%</info> command dumps the current configuration for an
4444
extension/bundle.
4545

src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function configure()
3838
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'),
3939
))
4040
->setDescription('Displays configured listeners for an application')
41-
->setHelp(<<<EOF
41+
->setHelp(<<<'EOF'
4242
The <info>%command.name%</info> command displays all configured listeners:
4343
4444
<info>php %command.full_name%</info>

src/Symfony/Bundle/FrameworkBundle/Command/ServerStartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939
))
4040
->setName('server:start')
4141
->setDescription('Starts PHP built-in web server in the background')
42-
->setHelp(<<<EOF
42+
->setHelp(<<<'EOF'
4343
The <info>%command.name%</info> runs PHP's built-in web server:
4444
4545
<info>php %command.full_name%</info>

src/Symfony/Bundle/FrameworkBundle/Command/ServerStopCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
))
3434
->setName('server:stop')
3535
->setDescription('Stops PHP\'s built-in web server that was started with the server:start command')
36-
->setHelp(<<<EOF
36+
->setHelp(<<<'EOF'
3737
The <info>%command.name%</info> stops PHP's built-in web server:
3838
3939
<info>php %command.full_name%</info>

src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function configure()
5050
new InputOption('only-unused', null, InputOption::VALUE_NONE, 'Displays only unused messages'),
5151
))
5252
->setDescription('Displays translation messages information')
53-
->setHelp(<<<EOF
53+
->setHelp(<<<'EOF'
5454
The <info>%command.name%</info> command helps finding unused or missing translation
5555
messages and comparing them with the fallback ones by inspecting the
5656
templates and translation files of a given bundle or the app folder.

src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure()
3434
->setDescription('Lints a file and outputs encountered errors')
3535
->addArgument('filename', null, 'A file or a directory or STDIN')
3636
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
37-
->setHelp(<<<EOF
37+
->setHelp(<<<'EOF'
3838
The <info>%command.name%</info> command lints a YAML file and outputs to STDOUT
3939
the first encountered syntax error.
4040

0 commit comments

Comments
 (0)