@@ -41,13 +41,10 @@ protected function configure()
41
41
{
42
42
$ this
43
43
->setName ('debug:translation ' )
44
- ->setAliases (
45
- array (
44
+ ->setAliases (array (
46
45
'translation:debug ' ,
47
- )
48
- )
49
- ->setDefinition (
50
- array (
46
+ ))
47
+ ->setDefinition (array (
51
48
new InputArgument ('locale ' , InputArgument::REQUIRED , 'The locale ' ),
52
49
new InputArgument (
53
50
'bundle ' ,
@@ -58,11 +55,9 @@ protected function configure()
58
55
new InputOption ('only-missing ' , null , InputOption::VALUE_NONE , 'Displays only missing messages ' ),
59
56
new InputOption ('only-unused ' , null , InputOption::VALUE_NONE , 'Displays only unused messages ' ),
60
57
new InputOption ('all ' , null , InputOption::VALUE_NONE , 'Load messages from all registered bundles ' ),
61
- )
62
- )
58
+ ))
63
59
->setDescription ('Displays translation messages information ' )
64
- ->setHelp (
65
- <<<EOF
60
+ ->setHelp (<<<EOF
66
61
The <info>%command.name%</info> command helps finding unused or missing translation
67
62
messages and comparing them with the fallback ones by inspecting the
68
63
templates and translation files of a given bundle or the app folder.
@@ -119,10 +114,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
119
114
// Override with provided Bundle info
120
115
if (null !== $ input ->getArgument ('bundle ' )) {
121
116
try {
122
- $ rootPaths = array (
123
- $ kernel ->getBundle ($ input ->getArgument ('bundle ' ))
124
- ->getPath ()
125
- );
117
+ $ rootPaths = array ($ kernel ->getBundle ($ input ->getArgument ('bundle ' ))->getPath ());
126
118
} catch (\InvalidArgumentException $ e ) {
127
119
// such a bundle does not exist, so treat the argument as path
128
120
$ rootPaths = array ($ input ->getArgument ('bundle ' ));
0 commit comments