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

Skip to content

Commit b388239

Browse files
committed
fixed some coding guideline things
1 parent ef41d8e commit b388239

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
109109
$locale = $input->getArgument('locale');
110110
$domain = $input->getOption('domain');
111111
/** @var TranslationLoader $loader */
112-
$loader = $this->getContainer()
113-
->get('translation.loader');
112+
$loader = $this->getContainer()->get('translation.loader');
114113
/** @var Kernel $kernel */
115-
$kernel = $this->getContainer()
116-
->get('kernel');
114+
$kernel = $this->getContainer()->get('kernel');
117115

118116
// Define Root Path to App folder
119117
$rootPaths = array($kernel->getRootDir());
@@ -155,8 +153,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
155153

156154
// Merge defined and extracted messages to get all message ids
157155
$mergeOperation = new MergeOperation($extractedCatalogue, $currentCatalogue);
158-
$allMessages = $mergeOperation->getResult()
159-
->all($domain);
156+
$allMessages = $mergeOperation->getResult()->all($domain);
160157
if (null !== $domain) {
161158
$allMessages = array($domain => $allMessages);
162159
}
@@ -334,8 +331,7 @@ private function loadCurrentMessages($locale, $translationsPath, TranslationLoad
334331
private function loadFallbackCatalogues($locale, $translationsPath, TranslationLoader $loader)
335332
{
336333
$fallbackCatalogues = array();
337-
$translator = $this->getContainer()
338-
->get('translator');
334+
$translator = $this->getContainer()->get('translator');
339335
if ($translator instanceof Translator) {
340336
foreach ($translator->getFallbackLocales() as $fallbackLocale) {
341337
if ($fallbackLocale === $locale) {

0 commit comments

Comments
 (0)