@@ -133,7 +133,7 @@ |
||
133 | 133 | * |
134 | 134 | * @param string $domain |
135 | 135 | * @param string $path |
136 | - * @param array $directories |
|
136 | + * @param string[] $directories |
|
137 | 137 | * |
138 | 138 | * @return array |
139 | 139 | */ |
@@ -141,8 +141,8 @@ |
||
141 | 141 | { |
142 | 142 | if (!$directories) { |
143 | 143 | $directories = [ |
144 | - $path . 'Resources/translations', |
|
145 | - $this->kernelRoot . DIRECTORY_SEPARATOR . $domain . DIRECTORY_SEPARATOR . 'translations', |
|
144 | + $path.'Resources/translations', |
|
145 | + $this->kernelRoot.DIRECTORY_SEPARATOR.$domain.DIRECTORY_SEPARATOR.'translations', |
|
146 | 146 | ]; |
147 | 147 | } |
148 | 148 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | /** |
112 | 112 | * @param string $id |
113 | 113 | * |
114 | - * @return Translation|object |
|
114 | + * @return null|\ReflectionClass |
|
115 | 115 | */ |
116 | 116 | public function getTranslation($id) |
117 | 117 | { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $translations = $import->getTranslationsFromFiles( |
77 | 77 | $domain, |
78 | 78 | null, |
79 | - [$this->getContainer()->getParameter('kernel.root_dir') . 'translations'] |
|
79 | + [$this->getContainer()->getParameter('kernel.root_dir').'translations'] |
|
80 | 80 | ); |
81 | 81 | $import->writeToStorage($domain, $translations); |
82 | 82 | $output->writeln('<info>*** Importing bundles translation files ***</info>'); |
@@ -123,7 +123,7 @@ |
||
123 | 123 | foreach ($messages as $key => $message) { |
124 | 124 | if ($message->getStatus() === Message::DIRTY || $force) { |
125 | 125 | $path = sprintf( |
126 | - '%s' . DIRECTORY_SEPARATOR . '%s.%s.%s', |
|
126 | + '%s'.DIRECTORY_SEPARATOR.'%s.%s.%s', |
|
127 | 127 | $translation->getPath(), |
128 | 128 | 'messages', |
129 | 129 | $message->getLocale(), |