Completed
Pull Request — master (#89)
by
unknown
62:49
created
Controller/ListController.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -11,13 +11,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Document/Translation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Service/Import.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Translation/TranslationManager.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
265 265
      *
266 266
      * @param string $id
267 267
      *
268
-     * @return Translation
268
+     * @return null|\ReflectionClass
269 269
      *
270 270
      * @throws BadRequestHttpException
271 271
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.