Completed
Pull Request — master (#1118)
by Karel
05:20
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/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.
Transformer/ElasticaToModelTransformerCollection.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace FOS\ElasticaBundle\Transformer;
4 4
 
5 5
 use FOS\ElasticaBundle\HybridResult;
6
-use Elastica\Document;
7 6
 
8 7
 /**
9 8
  * Holds a collection of transformers for an index wide transformation.
Please login to merge, or discard this patch.
Tests/Doctrine/AbstractElasticaToModelTransformerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -256,6 +256,9 @@
 block discarded – undo
256 256
     public $id;
257 257
     public $highlights;
258 258
 
259
+    /**
260
+     * @param integer $id
261
+     */
259 262
     public function __construct($id)
260 263
     {
261 264
         $this->id = $id;
Please login to merge, or discard this patch.
Tests/Finder/TransformedFinderTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 class TransformedFinderTest extends \PHPUnit_Framework_TestCase
9 9
 {
10
+    /**
11
+     * @param string $transformMethod
12
+     */
10 13
     private function createMockTransformer($transformMethod)
11 14
     {
12 15
         $transformer = $this->getMock('FOS\ElasticaBundle\Transformer\ElasticaToModelTransformerInterface');
@@ -19,6 +22,10 @@  discard block
 block discarded – undo
19 22
         return $transformer;
20 23
     }
21 24
 
25
+    /**
26
+     * @param Query $query
27
+     * @param integer $limit
28
+     */
22 29
     private function createMockFinderForSearch($transformer, $query, $limit)
23 30
     {
24 31
         $searchable = $this->getMock('Elastica\SearchableInterface');
Please login to merge, or discard this patch.
Tests/Index/AliasProcessorTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -201,6 +201,9 @@
 block discarded – undo
201 201
         $this->processor = new AliasProcessor();
202 202
     }
203 203
 
204
+    /**
205
+     * @param string $name
206
+     */
204 207
     private function getMockedIndex($name)
205 208
     {
206 209
         $index = $this->getMockBuilder('FOS\\ElasticaBundle\\Elastica\\Index')
Please login to merge, or discard this patch.
Tests/Transformer/ElasticaToModelTransformerCollectionTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
     protected $id;
208 208
 
209 209
     /**
210
-     * @param int|string $id
210
+     * @param string $id
211 211
      */
212 212
     public function __construct($id)
213 213
     {
Please login to merge, or discard this patch.