@@ -11,13 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace ONGR\TranslationsBundle\Controller; |
| 13 | 13 | |
| 14 | -use ONGR\ElasticsearchBundle\Result\DocumentIterator; |
|
| 15 | -use ONGR\ElasticsearchBundle\Result\Result; |
|
| 16 | -use ONGR\ElasticsearchDSL\Aggregation\TermsAggregation; |
|
| 17 | -use ONGR\ElasticsearchBundle\Service\Repository; |
|
| 18 | -use ONGR\FilterManagerBundle\Filter\ViewData; |
|
| 19 | 14 | use ONGR\FilterManagerBundle\Search\SearchResponse; |
| 20 | -use ONGR\TranslationsBundle\Document\Translation; |
|
| 21 | 15 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 22 | 16 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 23 | 17 | use Symfony\Component\HttpFoundation\Request; |
@@ -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 | { |
@@ -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; |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | /** |
| 255 | - * @param object $document |
|
| 255 | + * @param null|\ReflectionClass $document |
|
| 256 | 256 | */ |
| 257 | 257 | private function commitTranslation($document) |
| 258 | 258 | { |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | * |
| 266 | 266 | * @param string $id |
| 267 | 267 | * |
| 268 | - * @return Translation |
|
| 268 | + * @return null|\ReflectionClass |
|
| 269 | 269 | * |
| 270 | 270 | * @throws BadRequestHttpException |
| 271 | 271 | */ |
@@ -26,8 +26,6 @@ |
||
| 26 | 26 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 27 | 27 | use Symfony\Component\HttpFoundation\Request; |
| 28 | 28 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
| 29 | -use Symfony\Component\PropertyAccess\PropertyAccess; |
|
| 30 | -use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
|
| 31 | 29 | |
| 32 | 30 | /** |
| 33 | 31 | * Handles translation objects by http requests. |