Skip to content

Commit 37956db

Browse files
Merge branch '2.7' into 2.8
* 2.7: CS fixes Remove trailing space CS: apply rules [Yaml] Clean some messages + add test case [Form] Fix UrlType transforms valid protocols [SecurityBundle] Changed encoder configuration example to bcrypt
2 parents 779a6df + 4eb003b commit 37956db

File tree

71 files changed

+222
-216
lines changed

Some content is hidden

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

71 files changed

+222
-216
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
@@ -61,7 +61,7 @@ protected function configure()
6161
new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (text or json)', 'text'),
6262
))
6363
->setDescription('Shows a list of twig functions, filters, globals and tests')
64-
->setHelp(<<<EOF
64+
->setHelp(<<<'EOF'
6565
The <info>%command.name%</info> command outputs a list of twig functions,
6666
filters, globals and tests. Output can be filtered with an optional argument.
6767

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

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

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
@@ -39,7 +39,7 @@ protected function configure()
3939
new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw description'),
4040
))
4141
->setDescription('Displays configured listeners for an application')
42-
->setHelp(<<<EOF
42+
->setHelp(<<<'EOF'
4343
The <info>%command.name%</info> command displays all configured listeners:
4444
4545
<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
@@ -41,7 +41,7 @@ protected function configure()
4141
))
4242
->setName('server:start')
4343
->setDescription('Starts PHP built-in web server in the background')
44-
->setHelp(<<<EOF
44+
->setHelp(<<<'EOF'
4545
The <info>%command.name%</info> runs PHP's built-in web server:
4646
4747
<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
@@ -36,7 +36,7 @@ protected function configure()
3636
))
3737
->setName('server:stop')
3838
->setDescription('Stops PHP\'s built-in web server that was started with the server:start command')
39-
->setHelp(<<<EOF
39+
->setHelp(<<<'EOF'
4040
The <info>%command.name%</info> stops PHP's built-in web server:
4141
4242
<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
@@ -53,7 +53,7 @@ protected function configure()
5353
new InputOption('all', null, InputOption::VALUE_NONE, 'Load messages from all registered bundles'),
5454
))
5555
->setDescription('Displays translation messages information')
56-
->setHelp(<<<EOF
56+
->setHelp(<<<'EOF'
5757
The <info>%command.name%</info> command helps finding unused or missing translation
5858
messages and comparing them with the fallback ones by inspecting the
5959
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
@@ -35,7 +35,7 @@ protected function configure()
3535
->setDescription('Lints a file and outputs encountered errors')
3636
->addArgument('filename', null, 'A file or a directory or STDIN')
3737
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
38-
->setHelp(<<<EOF
38+
->setHelp(<<<'EOF'
3939
The <info>%command.name%</info> command lints a YAML file and outputs to STDOUT
4040
the first encountered syntax error.
4141

0 commit comments

Comments
 (0)