| @@ -205,7 +205,7 @@ | ||
| 205 | 205 | } | 
| 206 | 206 | |
| 207 | 207 | /** | 
| 208 | - * @param Message[]|Collection $messages | |
| 208 | + * @param Collection $messages | |
| 209 | 209 | */ | 
| 210 | 210 | public function setMessages(Collection $messages = null) | 
| 211 | 211 |      { | 
| @@ -13,7 +13,6 @@ | ||
| 13 | 13 | |
| 14 | 14 | use ONGR\TranslationsBundle\Document\Message; | 
| 15 | 15 | use ONGR\TranslationsBundle\Document\Translation; | 
| 16 | -use ONGR\TranslationsBundle\Service\LoadersContainer; | |
| 17 | 16 | use ONGR\TranslationsBundle\Service\TranslationManager; | 
| 18 | 17 | use Symfony\Component\Filesystem\Filesystem; | 
| 19 | 18 | use Symfony\Component\HttpFoundation\ParameterBag; | 
| @@ -11,7 +11,6 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace ONGR\TranslationsBundle\Service; | 
| 13 | 13 | |
| 14 | -use Elasticsearch\Common\Exceptions\BadRequest400Exception; | |
| 15 | 14 | use ONGR\ElasticsearchBundle\Service\Manager; | 
| 16 | 15 | use ONGR\TranslationsBundle\Document\Message; | 
| 17 | 16 | use ONGR\TranslationsBundle\Document\Translation; | 
| @@ -113,7 +113,7 @@ | ||
| 113 | 113 | /** | 
| 114 | 114 | * @param string $id | 
| 115 | 115 | * | 
| 116 | - * @return Translation | |
| 116 | + * @return null|\ReflectionClass | |
| 117 | 117 | * | 
| 118 | 118 | * @throws BadRequestHttpException | 
| 119 | 119 | */ | 
| @@ -11,7 +11,6 @@ discard block | ||
| 11 | 11 | |
| 12 | 12 | namespace ONGR\TranslationsBundle\Service; | 
| 13 | 13 | |
| 14 | -use Elasticsearch\Common\Exceptions\Missing404Exception; | |
| 15 | 14 | use ONGR\ElasticsearchBundle\Result\DocumentIterator; | 
| 16 | 15 | use ONGR\ElasticsearchDSL\Aggregation\Bucketing\TermsAggregation; | 
| 17 | 16 | use ONGR\ElasticsearchDSL\Query\MatchAllQuery; | 
| @@ -23,7 +22,6 @@ discard block | ||
| 23 | 22 | use ONGR\TranslationsBundle\Event\TranslationEditMessageEvent; | 
| 24 | 23 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; | 
| 25 | 24 | use Symfony\Component\HttpFoundation\Request; | 
| 26 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; | |
| 27 | 25 | |
| 28 | 26 | /** | 
| 29 | 27 | * Handles translation objects by http requests. | 
| @@ -11,14 +11,11 @@ | ||
| 11 | 11 | |
| 12 | 12 | namespace ONGR\TranslationsBundle\Controller; | 
| 13 | 13 | |
| 14 | -use ONGR\TranslationsBundle\Service\TranslationChecker; | |
| 15 | 14 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | 
| 16 | 15 | use Symfony\Component\Console\Input\ArrayInput; | 
| 17 | 16 | use Symfony\Component\Console\Output\NullOutput; | 
| 18 | 17 | use Symfony\Component\HttpFoundation\JsonResponse; | 
| 19 | 18 | use Symfony\Component\HttpFoundation\Request; | 
| 20 | -use Symfony\Component\HttpFoundation\Response; | |
| 21 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; | |
| 22 | 19 | |
| 23 | 20 | /** | 
| 24 | 21 | * Controller used for api's actions. |