Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0984313

Browse filesBrowse files
committed
clean up commands from framework bundle
1 parent f15ea50 commit 0984313
Copy full SHA for 0984313
Expand file treeCollapse file tree

16 files changed

+27
-17
lines changed

‎src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function findAllTemplates()
5555

5656
$templates = array();
5757

58-
foreach ($this->kernel->getBundles() as $name => $bundle) {
58+
foreach ($this->kernel->getBundles() as $bundle) {
5959
$templates = array_merge($templates, $this->findTemplatesInBundle($bundle));
6060
}
6161

‎src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\DependencyInjection\Extension\Extension;
1717

1818
/**
19-
* A console command for dumping available configuration reference
19+
* A console command for dumping available configuration reference.
2020
*
2121
* @author Kevin Bond <kevinbond@gmail.com>
2222
* @author Wouter J <waldio.webdesign@gmail.com>

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
$bundlesDir = $targetArg.'/bundles/';
8484
$filesystem->mkdir($bundlesDir, 0777);
8585

86-
$output->writeln(sprintf("Installing assets using the <comment>%s</comment> option", $input->getOption('symlink') ? 'symlink' : 'hard copy'));
86+
$output->writeln(sprintf('Installing assets %s the <comment>symlink</comment> option', $input->getOption('symlink') ? 'using' : 'without'));
8787

8888
foreach ($this->getContainer()->get('kernel')->getBundles() as $bundle) {
8989
if (is_dir($originDir = $bundle->getPath().'/Resources/public')) {

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ protected function configure()
4343
4444
<info>php %command.full_name% --env=dev</info>
4545
<info>php %command.full_name% --env=prod --no-debug</info>
46+
4647
EOF
4748
)
4849
;
@@ -107,9 +108,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
107108
}
108109

109110
/**
110-
* @param string $warmupDir
111-
* @param string $realCacheDir
112-
* @param bool $enableOptionalWarmers
111+
* @param string $warmupDir
112+
* @param string $realCacheDir
113+
* @param Boolean $enableOptionalWarmers
113114
*/
114115
protected function warmup($warmupDir, $realCacheDir, $enableOptionalWarmers = true)
115116
{

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected function configure()
4242
command, too many classes that should be part of the cache are already loaded
4343
in memory). Use <comment>curl</comment> or any other similar tool to warm up
4444
the classes cache if you want.
45+
4546
EOF
4647
)
4748
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515
use Symfony\Component\Console\Input\InputArgument;
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
18-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1918
use Symfony\Component\Yaml\Yaml;
2019

2120
/**
22-
* A console command for dumping available configuration reference
21+
* A console command for dumping available configuration reference.
2322
*
2423
* @author Grégoire Pineau <lyrixx@lyrixx.info>
2524
*/

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Component\Console\Output\OutputInterface;
2020

2121
/**
22-
* A console command for dumping available configuration reference
22+
* A console command for dumping available configuration reference.
2323
*
2424
* @author Kevin Bond <kevinbond@gmail.com>
2525
* @author Wouter J <waldio.webdesign@gmail.com>
@@ -53,6 +53,7 @@ protected function configure()
5353
When the option is not provided, <comment>yaml</comment> is used.
5454
5555
<info>php %command.full_name% FrameworkBundle --format=xml</info>
56+
5657
EOF
5758
)
5859
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Symfony\Component\Config\FileLocator;
2222

2323
/**
24-
* A console command for retrieving information about services
24+
* A console command for retrieving information about services.
2525
*
2626
* @author Ryan Weaver <ryan@thatsquality.com>
2727
*/
@@ -41,8 +41,8 @@ protected function configure()
4141
->setName('container:debug')
4242
->setDefinition(array(
4343
new InputArgument('name', InputArgument::OPTIONAL, 'A service name (foo)'),
44-
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Use to show public *and* private services'),
45-
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Show all services with a specific tag'),
44+
new InputOption('show-private', null, InputOption::VALUE_NONE, 'Used to show public *and* private services'),
45+
new InputOption('tag', null, InputOption::VALUE_REQUIRED, 'Shows all services with a specific tag'),
4646
new InputOption('tags', null, InputOption::VALUE_NONE, 'Displays tagged services for an application'),
4747
new InputOption('parameter', null, InputOption::VALUE_REQUIRED, 'Displays a specific parameter for an application'),
4848
new InputOption('parameters', null, InputOption::VALUE_NONE, 'Displays parameters for an application'),
@@ -79,6 +79,7 @@ protected function configure()
7979
Display a specific parameter by specifying his name with the --parameter option:
8080
8181
<info>php %command.full_name% --parameter=kernel.debug</info>
82+
8283
EOF
8384
)
8485
;

‎src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ protected function configure()
6363
matching.
6464
6565
<info>php %command.full_name%</info>
66+
6667
EOF
6768
)
6869
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Symfony\Component\Routing\Route;
2121

2222
/**
23-
* A console command for retrieving information about routes
23+
* A console command for retrieving information about routes.
2424
*
2525
* @author Fabien Potencier <fabien@symfony.com>
2626
* @author Tobias Schultze <http://tobion.de>
@@ -61,6 +61,7 @@ protected function configure()
6161
The <info>%command.name%</info> displays the configured routes:
6262
6363
<info>php %command.full_name%</info>
64+
6465
EOF
6566
)
6667
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ protected function configure()
5656
The <info>%command.name%</info> simulates a path info match:
5757
5858
<info>php %command.full_name% /foo</info>
59+
5960
EOF
6061
)
6162
;
@@ -72,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7273
$traces = $matcher->getTraces($input->getArgument('path_info'));
7374

7475
$matches = false;
75-
foreach ($traces as $i => $trace) {
76+
foreach ($traces as $trace) {
7677
if (TraceableUrlMatcher::ROUTE_ALMOST_MATCHES == $trace['level']) {
7778
$output->writeln(sprintf('<fg=yellow>Route "%s" almost matches but %s</>', $trace['name'], lcfirst($trace['log'])));
7879
} elseif (TraceableUrlMatcher::ROUTE_MATCHES == $trace['level']) {

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Process\ProcessBuilder;
1919

2020
/**
21-
* Runs Symfony2 application using PHP built-in web server
21+
* Runs Symfony2 application using PHP built-in web server.
2222
*
2323
* @author Michał Pipa <michal.pipa.xsolve@gmail.com>
2424
*/
@@ -68,6 +68,7 @@ protected function configure()
6868
<info>%command.full_name% --router=app/config/router.php</info>
6969
7070
See also: http://www.php.net/manual/en/features.commandline.webserver.php
71+
7172
EOF
7273
)
7374
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ protected function configure()
6767
You can only display unused messages:
6868
6969
<info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
70+
7071
EOF
7172
)
7273
;

‎src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ protected function configure()
6666
6767
<info>php %command.full_name% --dump-messages en AcmeBundle</info>
6868
<info>php %command.full_name% --force --prefix="new_" fr AcmeBundle</info>
69+
6970
EOF
7071
)
7172
;

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Symfony\Component\Yaml\Parser;
2525

2626
/**
27-
* Validates YAML files syntax and output encountered errors.
27+
* Validates YAML files syntax and outputs encountered errors.
2828
*
2929
* @author Grégoire Pineau <lyrixx@lyrixx.info>
3030
*/
@@ -57,6 +57,7 @@ protected function configure()
5757
You can also pass the YAML contents from STDIN:
5858
5959
<info>cat filename | php %command.full_name%</info>
60+
6061
EOF
6162
)
6263
;

‎src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Controller/RedirectControllerTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
2020

2121
/**
22-
* @author Marcin Sikon<marcin.sikon@gmail.com>
22+
* @author Marcin Sikon <marcin.sikon@gmail.com>
2323
*/
2424
class RedirectControllerTest extends TestCase
2525
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.