Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9deb8c

Browse files
committed
and some more coding guideline fixes
1 parent 1bbd1e3 commit c9deb8c

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

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

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ protected function configure()
4141
{
4242
$this
4343
->setName('debug:translation')
44-
->setAliases(
45-
array(
44+
->setAliases(array(
4645
'translation:debug',
47-
)
48-
)
49-
->setDefinition(
50-
array(
46+
))
47+
->setDefinition(array(
5148
new InputArgument('locale', InputArgument::REQUIRED, 'The locale'),
5249
new InputArgument(
5350
'bundle',
@@ -58,11 +55,9 @@ protected function configure()
5855
new InputOption('only-missing', null, InputOption::VALUE_NONE, 'Displays only missing messages'),
5956
new InputOption('only-unused', null, InputOption::VALUE_NONE, 'Displays only unused messages'),
6057
new InputOption('all', null, InputOption::VALUE_NONE, 'Load messages from all registered bundles'),
61-
)
62-
)
58+
))
6359
->setDescription('Displays translation messages information')
64-
->setHelp(
65-
<<<EOF
60+
->setHelp(<<<EOF
6661
The <info>%command.name%</info> command helps finding unused or missing translation
6762
messages and comparing them with the fallback ones by inspecting the
6863
templates and translation files of a given bundle or the app folder.
@@ -119,10 +114,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
119114
// Override with provided Bundle info
120115
if (null !== $input->getArgument('bundle')) {
121116
try {
122-
$rootPaths = array(
123-
$kernel->getBundle($input->getArgument('bundle'))
124-
->getPath()
125-
);
117+
$rootPaths = array($kernel->getBundle($input->getArgument('bundle'))->getPath());
126118
} catch (\InvalidArgumentException $e) {
127119
// such a bundle does not exist, so treat the argument as path
128120
$rootPaths = array($input->getArgument('bundle'));

0 commit comments

Comments
 (0)