Completed
Branch master (d165fe)
by Simonas
05:10 queued 02:27
created
src/Aggregation/AbstractAggregation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Aggregation/HistogramAggregation.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
                 'size' => $this->getSize(),
132 132
                 'from' => $this->getFrom(),
133 133
             ],
134
-            function ($val) {
134
+            function($val) {
135 135
                 return (($val || is_array($val) || ($val || is_numeric($val))));
136 136
             }
137 137
         );
Please login to merge, or discard this patch.
src/Query/BoolQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Search.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/SearchEndpoint/AggregationsEndpoint.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/SearchEndpoint/QueryEndpoint.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,12 +12,9 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/Aggregation/TopHitsAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
                 'size' => $this->getSize(),
132 132
                 'from' => $this->getFrom(),
133 133
             ],
134
-            function ($val) {
134
+            function($val) {
135 135
                 return (($val || is_array($val) || ($val || is_numeric($val))));
136 136
             }
137 137
         );
Please login to merge, or discard this patch.
src/BuilderBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         return array_filter(
106 106
             $this->bag,
107 107
             /** @var BuilderInterface $builder */
108
-            function (BuilderInterface $builder) use ($type) {
108
+            function(BuilderInterface $builder) use ($type) {
109 109
                 return $type === null || $builder->getType() == $type;
110 110
             }
111 111
         );
Please login to merge, or discard this patch.
src/Query/FilteredQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public function __construct($query = null, $filter = null)
43 43
     {
44 44
         @trigger_error(
45
-            'The FilteredQuery class is deprecated and will be removed in 2.0. ' .
45
+            'The FilteredQuery class is deprecated and will be removed in 2.0. '.
46 46
             'Use the "bool" query instead with a "filter" clause.',
47 47
             E_USER_DEPRECATED
48 48
         );
Please login to merge, or discard this patch.