@@ -106,7 +106,7 @@ |
||
106 | 106 | * Returns sub aggregation. |
107 | 107 | * @param string $name Aggregation name to return. |
108 | 108 | * |
109 | - * @return AbstractAggregation|null |
|
109 | + * @return BuilderInterface|null |
|
110 | 110 | */ |
111 | 111 | public function getAggregation($name) |
112 | 112 | { |
@@ -221,7 +221,7 @@ |
||
221 | 221 | * Checks if all required parameters are set. |
222 | 222 | * |
223 | 223 | * @param array $data |
224 | - * @param array $required |
|
224 | + * @param string[] $required |
|
225 | 225 | * |
226 | 226 | * @throws \LogicException |
227 | 227 | */ |
@@ -208,7 +208,7 @@ |
||
208 | 208 | 'keyed' => $this->isKeyed(), |
209 | 209 | 'order' => $this->getOrder(), |
210 | 210 | ], |
211 | - function ($val) { |
|
211 | + function($val) { |
|
212 | 212 | return ($val || is_numeric($val)); |
213 | 213 | } |
214 | 214 | ); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @param null $boolType |
|
57 | + * @param string|null $boolType |
|
58 | 58 | * @return array |
59 | 59 | */ |
60 | 60 | public function getQueries($boolType = null) |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | * - should. |
266 | 266 | * @param string $key |
267 | 267 | * |
268 | - * @return int Key of post filter. |
|
268 | + * @return Search Key of post filter. |
|
269 | 269 | */ |
270 | 270 | public function addPostFilter(BuilderInterface $filter, $boolType = BoolFilter::MUST, $key = null) |
271 | 271 | { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * |
356 | 356 | * @param Highlight $highlight |
357 | 357 | * |
358 | - * @return int Key of highlight. |
|
358 | + * @return Search Key of highlight. |
|
359 | 359 | */ |
360 | 360 | public function addHighlight($highlight) |
361 | 361 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace ONGR\ElasticsearchDSL\SearchEndpoint; |
13 | 13 | |
14 | 14 | use ONGR\ElasticsearchDSL\Aggregation\AbstractAggregation; |
15 | -use ONGR\ElasticsearchDSL\BuilderBag; |
|
16 | 15 | use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
17 | 16 | |
18 | 17 | /** |
@@ -12,12 +12,9 @@ |
||
12 | 12 | namespace ONGR\ElasticsearchDSL\SearchEndpoint; |
13 | 13 | |
14 | 14 | use ONGR\ElasticsearchDSL\BuilderInterface; |
15 | -use ONGR\ElasticsearchDSL\Filter\BoolFilter; |
|
16 | -use ONGR\ElasticsearchDSL\ParametersTrait; |
|
17 | 15 | use ONGR\ElasticsearchDSL\Query\BoolQuery; |
18 | 16 | use ONGR\ElasticsearchDSL\Query\FilteredQuery; |
19 | 17 | use ONGR\ElasticsearchDSL\Serializer\Normalizer\OrderedNormalizerInterface; |
20 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
21 | 18 | use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
22 | 19 | |
23 | 20 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | 'precision_threshold' => $this->getPrecisionThreshold(), |
45 | 45 | 'rehash' => $this->isRehash(), |
46 | 46 | ], |
47 | - function ($val) { |
|
47 | + function($val) { |
|
48 | 48 | return ($val || is_bool($val)); |
49 | 49 | } |
50 | 50 | ); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | 'script' => $this->getScript(), |
80 | 80 | 'sigma' => $this->getSigma(), |
81 | 81 | ], |
82 | - function ($val) { |
|
82 | + function($val) { |
|
83 | 83 | return ($val || is_numeric($val)); |
84 | 84 | } |
85 | 85 | ); |
@@ -103,7 +103,7 @@ |
||
103 | 103 | 'values' => $this->getValues(), |
104 | 104 | 'compression' => $this->getCompression(), |
105 | 105 | ], |
106 | - function ($val) { |
|
106 | + function($val) { |
|
107 | 107 | return ($val || is_numeric($val)); |
108 | 108 | } |
109 | 109 | ); |