@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $domains = $input->getOption('domains'); |
| 61 | 61 | $export->export($domains); |
| 62 | 62 | |
| 63 | - $prettify = function ($array) { |
|
| 63 | + $prettify = function($array) { |
|
| 64 | 64 | return !empty($array) ? implode('</comment><info>`, `</info><comment>', $array) : 'all'; |
| 65 | 65 | }; |
| 66 | 66 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @param Request $request |
| 34 | - * @param object $document |
|
| 34 | + * @param \ReflectionClass $document |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct(Request $request, $document) |
| 37 | 37 | { |
@@ -147,9 +147,8 @@ |
||
| 147 | 147 | public function importBundlesTranslationFiles($bundles, $isBundle = false) |
| 148 | 148 | { |
| 149 | 149 | foreach ($bundles as $bundle) { |
| 150 | - $dir = $isBundle? |
|
| 151 | - dir($bundle->getPath())->path : |
|
| 152 | - dirname((new \ReflectionClass($bundle))->getFilename()); |
|
| 150 | + $dir = $isBundle ? |
|
| 151 | + dir($bundle->getPath())->path : dirname((new \ReflectionClass($bundle))->getFilename()); |
|
| 153 | 152 | |
| 154 | 153 | $this->importBundleTranslationFiles($dir); |
| 155 | 154 | } |