Completed
Pull Request — master (#89)
by
unknown
64:35
created
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/TranslationManager.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     /**
110 110
      * @param string $id
111 111
      *
112
-     * @return Translation
112
+     * @return null|\ReflectionClass
113 113
      *
114 114
      * @throws BadRequestHttpException
115 115
      */
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      *
243 243
      * @param Request $request Http request object.
244 244
      *
245
-     * @return array
245
+     * @return Translation
246 246
      *
247 247
      * @throws BadRequestHttpException
248 248
      */
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     }
259 259
 
260 260
     /**
261
-     * @param object $document
261
+     * @param null|\ReflectionClass $document
262 262
      */
263 263
     private function commitTranslation($document)
264 264
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,7 @@
 block discarded – undo
13 13
 
14 14
 use Elasticsearch\Common\Exceptions\Missing404Exception;
15 15
 use ONGR\ElasticsearchBundle\Result\DocumentIterator;
16
-use ONGR\ElasticsearchBundle\Result\Result;
17 16
 use ONGR\ElasticsearchDSL\Aggregation\Bucketing\TermsAggregation;
18
-use ONGR\ElasticsearchDSL\Query\ExistsQuery;
19 17
 use ONGR\ElasticsearchDSL\Query\MatchAllQuery;
20 18
 use ONGR\ElasticsearchDSL\Query\TermsQuery;
21 19
 use ONGR\ElasticsearchBundle\Service\Repository;
Please login to merge, or discard this patch.
Service/Export/ExportManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Service/Import/ImportManager.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.