Completed
Push — master ( 6b6a70...d90581 )
by Simonas
02:43 queued 51s
created
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/Serializer/OrderedSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         if (!empty($filteredData)) {
59 59
             uasort(
60 60
                 $filteredData,
61
-                function (OrderedNormalizerInterface $a, OrderedNormalizerInterface $b) {
61
+                function(OrderedNormalizerInterface $a, OrderedNormalizerInterface $b) {
62 62
                     return $a->getOrder() > $b->getOrder();
63 63
                 }
64 64
             );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         return array_filter(
82 82
             $array,
83
-            function ($value) {
83
+            function($value) {
84 84
                 return $value instanceof OrderedNormalizerInterface;
85 85
             }
86 86
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/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
@@ -208,7 +208,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Aggregation/Metric/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/InnerHit/NestedInnerHit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
         $out = [
101 101
             $this->getPathType() => [
102
-                $this->getPath() => $out ,
102
+                $this->getPath() => $out,
103 103
             ],
104 104
         ];
105 105
 
Please login to merge, or discard this patch.
src/Search.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -648,7 +648,7 @@
 block discarded – undo
648 648
 
649 649
     /**
650 650
      * @param string $name
651
-     * @param string|array|bool $value
651
+     * @param string $value
652 652
      *
653 653
      * @return $this
654 654
      */
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -406,12 +406,12 @@  discard block
 block discarded – undo
406 406
     }
407 407
 
408 408
     /**
409
-    * Adds suggest into search.
410
-    *
411
-    * @param BuilderInterface $suggest
412
-    *
413
-    * @return $this
414
-    */
409
+     * Adds suggest into search.
410
+     *
411
+     * @param BuilderInterface $suggest
412
+     *
413
+     * @return $this
414
+     */
415 415
     public function addSuggest(NamedBuilderInterface $suggest)
416 416
     {
417 417
         $this->getEndpoint(SuggestEndpoint::NAME)->add($suggest, $suggest->getName());
@@ -420,10 +420,10 @@  discard block
 block discarded – undo
420 420
     }
421 421
 
422 422
     /**
423
-    * Returns all suggests.
424
-    *
425
-    * @return BuilderInterface[]
426
-    */
423
+     * Returns all suggests.
424
+     *
425
+     * @return BuilderInterface[]
426
+     */
427 427
     public function getSuggests()
428 428
     {
429 429
         return $this->getEndpoint(SuggestEndpoint::NAME)->getAll();
Please login to merge, or discard this patch.
src/Query/Compound/FunctionScoreQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
     public function addRandomFunction($seed = null, BuilderInterface $query = null)
148 148
     {
149 149
         $function = [
150
-            'random_score' => $seed ? [ 'seed' => $seed ] : new \stdClass(),
150
+            'random_score' => $seed ? ['seed' => $seed] : new \stdClass(),
151 151
         ];
152 152
 
153 153
         $this->applyFilter($function, $query);
Please login to merge, or discard this patch.
src/Aggregation/Metric/PercentileRanksAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Aggregation/Metric/CardinalityAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.