8000 use nowdoc instead of heredoc · symfony/symfony@3dca549 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3dca549

Browse files
committed
use nowdoc instead of heredoc
1 parent 36a5141 commit 3dca549

37 files changed

+121
-119
lines changed

.php_cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ return Symfony\CS\Config\Config::create()
2424
->notPath('src/Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml')
2525
// test template
2626
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
27+
// explicit heredoc test
28+
->notPath('src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php')
2729
)
2830
;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure()
3737
->addOption('symlink', null, InputOption::VALUE_NONE, 'Symlinks the assets instead of copying it')
3838
->addOption('relative', null, InputOption::VALUE_NONE, 'Make relative symlinks')
3939
->setDescription('Installs bundles web assets under a public web directory')
40-
10000 ->setHelp(<<<EOT
40+
->setHelp(<<<'EOT'
4141
The <info>%command.name%</info> command installs bundle assets into a given
4242
directory (e.g. the <comment>web</comment> directory).
4343

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure()
3737
new InputOption('no-optional-warmers', '', InputOption::VALUE_NONE, 'Skip optional cache warmers (faster)'),
3838
))
3939
->setDescription('Clears the cache')
40-
->setHelp(<<<EOF
40+
->setHelp(<<<'EOF'
4141
The <info>%command.name%</info> command clears the application cache for a given environment
4242
and debug mode:
4343

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
new InputOption('no-optional-warmers', '', InputOption::VALUE_NONE, 'Skip optional cache warmers (faster)'),
3434
))
3535
->setDescription('Warms up an empty cache')
36-
->setHelp(<<<EOF
36+
->setHelp(<<<'EOF'
3737
The <info>%command.name%</info> command warms up the cache.
3838
3939
Before running this command, the cache must be empty.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure()
3535
new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle or extension alias'),
3636
))
3737
->setDescription('Dumps default configuration for an extension')
38-
->setHelp(<<<EOF
38+
->setHelp(<<<'EOF'
3939
The <info>%command.name%</info> command dumps the default configuration for an extension/bundle.
4040
4141
The extension alias or bundle name can be used:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function configure()
4949
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
5050
))
5151
->setDescription('Displays current services for an application')
52-
->setHelp(<<<EOF
52+
->setHelp(<<<'EOF'
5353
The <info>%command.name%</info> command displays all configured <comment>public</comment> services:
5454
5555
<info>php %command.full_name%</info>

src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.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('base-uri', null, InputOption::VALUE_REQUIRED, 'The base URI'),
5454
))
5555
->setDescription('Dumps all routes as Apache rewrite rules')
56-
->setHelp(<<<EOF
56+
->setHelp(<<<'EOF'
5757
The <info>%command.name%</info> dumps all routes as Apache rewrite rules.
5858
These can then be used with the ApacheUrlMatcher to use Apache for route
5959
matching.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function configure()
5151
new InputArgument('name', InputArgument::OPTIONAL, 'A route name'),
5252
))
5353
->setDescription('Displays current routes for an application')
54-
->setHelp(<<<EOF
54+
->setHelp(<<<'EOF'
5555
The <info>%command.name%</info> displays the configured routes:
5656
5757
<info>php %command.full_name%</info>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function configure()
5252
new InputArgument('path_info', InputArgument::REQUIRED, 'A path info'),
5353
))
5454
->setDescription('Helps debug routes by simulating a path info match')
55-
->setHelp(<<<EOF
55+
->setHelp(<<<'EOF'
5656
The <info>%command.name%</info> simulates a path info match:
5757
5858
<info>php %command.full_name% /foo</info>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function configure()
5454
))
5555
->setName('server:run')
5656
->setDescription('Runs PHP built-in web server')
57-
->setHelp(<<<EOF
57+
->setHelp(<<<'EOF'
5858
The <info>%command.name%</info> runs PHP built-in web server:
5959
6060
<info>%command.full_name%</info>

0 commit comments

Comments
 (0)
0