@@ -71,7 +71,7 @@ |
||
| 71 | 71 | * @param string $oldMessage |
| 72 | 72 | * @param string $locale |
| 73 | 73 | * |
| 74 | - * @return mixed |
|
| 74 | + * @return History |
|
| 75 | 75 | */ |
| 76 | 76 | private function setDocument($document, $oldMessage, $locale) |
| 77 | 77 | { |
@@ -14,8 +14,6 @@ |
||
| 14 | 14 | use ONGR\ElasticsearchBundle\Document\DocumentInterface; |
| 15 | 15 | use ONGR\ElasticsearchBundle\Service\Repository; |
| 16 | 16 | use ONGR\TranslationsBundle\Document\History; |
| 17 | -use Symfony\Component\Config\Definition\Exception\Exception; |
|
| 18 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
|
| 19 | 17 | |
| 20 | 18 | /** |
| 21 | 19 | * Listens for edit message request event and add old message to history. |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use ONGR\TranslationsBundle\Storage\StorageInterface; |
| 16 | 16 | use ONGR\TranslationsBundle\Translation\Import\FileImport; |
| 17 | 17 | use Symfony\Component\Finder\Finder; |
| 18 | -use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
| 19 | -use Symfony\Component\HttpKernel\Bundle\BundleInterface; |
|
| 20 | 18 | |
| 21 | 19 | /** |
| 22 | 20 | * Collects translations. |
@@ -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 | |