Completed
Push — master ( 129cf7...e70161 )
by Ema
02:11
created
src/Query/BoolQuery.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Add must not part to query.
42 42
      *
43
-     * @param AbstractQuery|array $args Must not query
43
+     * @param Ids $args Must not query
44 44
      *
45 45
      * @return $this
46 46
      */
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Sets the minimum number of should clauses to match.
95 95
      *
96
-     * @param int|string $minimum Minimum value
96
+     * @param integer $minimum Minimum value
97 97
      *
98 98
      * @return $this
99 99
      */
Please login to merge, or discard this patch.
src/Query/Fuzzy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * Set optional parameters on the existing query.
46 46
      *
47
-     * @param mixed $value Value of the parameter
47
+     * @param double $value Value of the parameter
48 48
      *
49 49
      * @return $this
50 50
      */
Please login to merge, or discard this patch.
src/Search.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,6 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     /**
72 72
      * Constructs search object.
73
+     * @param BuilderInterface $builder
73 74
      */
74 75
     public function __construct(Client $client, ?BuilderInterface $builder = null)
75 76
     {
@@ -102,7 +103,7 @@  discard block
 block discarded – undo
102 103
     /**
103 104
      * Add array of indices at once.
104 105
      *
105
-     * @param Index[]|string[] $indices
106
+     * @param Index[] $indices
106 107
      */
107 108
     public function addIndices(array $indices = []): self
108 109
     {
Please login to merge, or discard this patch.
tests/Aggregation/TopHitsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -191,6 +191,9 @@
 block discarded – undo
191 191
         $this->assertInstanceOf(TopHits::class, $returnValue);
192 192
     }
193 193
 
194
+    /**
195
+     * @param TopHits $innerAggr
196
+     */
194 197
     protected function getOuterAggregationResult($innerAggr)
195 198
     {
196 199
         $outerAggr = new Terms('top_tags');
Please login to merge, or discard this patch.
tests/Base.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param array $params Additional configuration params. Host and Port are already set
27
+     * @param \Closure $callback
27 28
      */
28 29
     protected function _getClient(array $params = [], ?callable $callback = null, ?LoggerInterface $logger = null): Client
29 30
     {
@@ -67,6 +68,9 @@  discard block
 block discarded – undo
67 68
         return 'http://'.$proxyHost.':8001';
68 69
     }
69 70
 
71
+    /**
72
+     * @param string $name
73
+     */
70 74
     protected function _createIndex(?string $name = null, bool $delete = true, int $shards = 1): Index
71 75
     {
72 76
         $name = $name ?: static::buildUniqueId();
@@ -120,6 +124,9 @@  discard block
 block discarded – undo
120 124
         return \substr($data['version']['number'], 0, 1);
121 125
     }
122 126
 
127
+    /**
128
+     * @param string $version
129
+     */
123 130
     protected function _checkVersion($version)
124 131
     {
125 132
         $data = $this->_getClient()->request('/')->getData();
Please login to merge, or discard this patch.
tests/Query/IdsTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Elastica\Document;
6 6
 use Elastica\Index;
7 7
 use Elastica\Query\Ids;
8
-use Elastica\Query\Type;
9 8
 use Elastica\Test\Base as BaseTest;
10 9
 
11 10
 class IdsTest extends BaseTest
Please login to merge, or discard this patch.
tests/Transport/GuzzleTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@
 block discarded – undo
124 124
         $client->request('_status', 'GET');
125 125
     }
126 126
 
127
+    /**
128
+     * @param string $url
129
+     */
127 130
     protected function checkProxy($url)
128 131
     {
129 132
         $url = \parse_url($url);
Please login to merge, or discard this patch.
tests/Query/MoreLikeThisTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $mapping = new Mapping([
27 27
             'email' => ['store' => true, 'type' => 'text', 'index' => true],
28
-            'content' => ['store' => true, 'type' => 'text',  'index' => true],
28
+            'content' => ['store' => true, 'type' => 'text', 'index' => true],
29 29
         ]);
30 30
 
31 31
         $mapping->setSource(['enabled' => false]);
Please login to merge, or discard this patch.
tests/Query/TermsTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         $terms = [
120 120
             'index' => 'index_name',
121 121
             'type' => 'type_name',
122
-             'id' => '1',
122
+                'id' => '1',
123 123
             'path' => 'terms',
124 124
         ];
125 125
 
Please login to merge, or discard this patch.