@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * @param string $id |
54 | 54 | * |
55 | - * @return Translation|object |
|
55 | + * @return null|\ReflectionClass |
|
56 | 56 | */ |
57 | 57 | public function get($id) |
58 | 58 | { |
@@ -48,7 +48,6 @@ |
||
48 | 48 | private $parser; |
49 | 49 | |
50 | 50 | /** |
51 | - * @param ParameterBag $loadersContainer |
|
52 | 51 | * @param TranslationManager $translationManager |
53 | 52 | * @param YmlExport $exporter |
54 | 53 | */ |
@@ -141,8 +141,8 @@ |
||
141 | 141 | { |
142 | 142 | if (!$directories) { |
143 | 143 | $directories = [ |
144 | - $path . 'Resources' . DIRECTORY_SEPARATOR . 'translations', |
|
145 | - $this->kernelRoot . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . $domain . DIRECTORY_SEPARATOR . 'translations', |
|
144 | + $path.'Resources'.DIRECTORY_SEPARATOR.'translations', |
|
145 | + $this->kernelRoot.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.$domain.DIRECTORY_SEPARATOR.'translations', |
|
146 | 146 | ]; |
147 | 147 | } |
148 | 148 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $export->export($this->getContainer()->getParameter('ongr_translations.bundles'), $input->getOption('force')); |
75 | 75 | } |
76 | 76 | |
77 | - $prettify = function ($array) { |
|
77 | + $prettify = function($array) { |
|
78 | 78 | return !empty($array) ? implode('</comment><info>`, `</info><comment>', $array) : 'all'; |
79 | 79 | }; |
80 | 80 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $translations = $import->getTranslationsFromFiles( |
77 | 77 | $domain, |
78 | 78 | null, |
79 | - [$this->getContainer()->getParameter('kernel.root_dir') . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'translations'] |
|
79 | + [$this->getContainer()->getParameter('kernel.root_dir').DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'translations'] |
|
80 | 80 | ); |
81 | 81 | $import->writeToStorage($domain, $translations); |
82 | 82 | $output->writeln('<info>*** Importing bundles translation files ***</info>'); |