Completed
Pull Request — master (#917)
by Dmitry
08:52
created
Finder/TransformedFinder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      * @param null|int $limit
70 70
      * @param array    $options
71 71
      *
72
-     * @return array
72
+     * @return \Elastica\Result[]
73 73
      */
74 74
     protected function search($query, $limit = null, $options = array())
75 75
     {
Please login to merge, or discard this patch.
Tests/Doctrine/AbstractProviderTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@
 block discarded – undo
288 288
     /**
289 289
      * @param boolean $setSliceFetcher Whether or not to set the slice fetcher.
290 290
      *
291
-     * @return \FOS\ElasticaBundle\Doctrine\AbstractProvider|\PHPUnit_Framework_MockObject_MockObject
291
+     * @return \PHPUnit_Framework_MockObject_MockObject
292 292
      */
293 293
     private function getMockAbstractProvider($setSliceFetcher = true)
294 294
     {
Please login to merge, or discard this patch.
Tests/Logger/ElasticaLoggerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param string $level
24 24
      * @param string $message
25
-     * @param array  $context
25
+     * @param string[]  $context
26 26
      *
27 27
      * @return ElasticaLogger
28 28
      */
Please login to merge, or discard this patch.
Configuration/ConfigManager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
         }
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $indexName
45
+     */
43 46
     public function getIndexConfiguration($indexName)
44 47
     {
45 48
         if (!$this->hasIndexConfiguration($indexName)) {
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
         return isset($this->indexes[$indexName]);
91 94
     }
92 95
 
96
+    /**
97
+     * @param string $indexTemplateName
98
+     */
93 99
     public function hasIndexTemplateConfiguration($indexTemplateName)
94 100
     {
95 101
         return isset($this->indexTemplates[$indexTemplateName]);
Please login to merge, or discard this patch.
Tests/Index/ResetterTest.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -354,6 +354,9 @@  discard block
 block discarded – undo
354 354
         call_user_func_array(array($expectation, 'withConsecutive'), $events);
355 355
     }
356 356
 
357
+    /**
358
+     * @param string $indexName
359
+     */
357 360
     private function mockIndex($indexName, IndexConfig $config, $mapping = array())
358 361
     {
359 362
         $this->configManager->expects($this->atLeast(1))
@@ -373,6 +376,9 @@  discard block
 block discarded – undo
373 376
         return $index;
374 377
     }
375 378
 
379
+    /**
380
+     * @param string $indexTemplateName
381
+     */
376 382
     private function mockIndexTemplate($indexTemplateName, IndexTemplateConfig $config, $mapping = array())
377 383
     {
378 384
         $this->configManager->expects($this->atLeast(1))
@@ -392,6 +398,10 @@  discard block
 block discarded – undo
392 398
         return $index;
393 399
     }
394 400
     
401
+    /**
402
+     * @param string $typeName
403
+     * @param string $indexName
404
+     */
395 405
     private function mockType($typeName, $indexName, TypeConfig $typeConfig, IndexConfig $indexConfig, $mapping = array())
396 406
     {
397 407
         $this->configManager->expects($this->atLeast(1))
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace FOS\ElasticaBundle\Tests\Index;
4 4
 
5
-use Elastica\Type;
6 5
 use FOS\ElasticaBundle\Configuration\ConfigManager;
7 6
 use FOS\ElasticaBundle\Configuration\IndexConfig;
8 7
 use FOS\ElasticaBundle\Configuration\IndexTemplateConfig;
Please login to merge, or discard this patch.