Completed
Pull Request — master (#367)
by Gino
44s
created
src/Aggregation/Bucketing/RangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
                 'from' => $from,
134 134
                 'to' => $to,
135 135
             ],
136
-            function ($v) {
136
+            function($v) {
137 137
                 return !is_null($v);
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/DateRangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                 'to' => $to,
88 88
                 'key' => $key,
89 89
             ],
90
-            function ($v) {
90
+            function($v) {
91 91
                 return !is_null($v);
92 92
             }
93 93
         );
Please login to merge, or discard this patch.
src/Aggregation/Bucketing/Ipv4RangeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
                 'from' => $from,
134 134
                 'to' => $to,
135 135
             ],
136
-            function ($v) {
136
+            function($v) {
137 137
                 return !is_null($v);
138 138
             }
139 139
         );
Please login to merge, or discard this patch.
src/Search.php 1 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/Aggregation/Bucketing/CompositeAggregation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $array = is_array($array) ? array_merge($array, $agg->getParameters()) : $array;
59 59
 
60 60
         $this->sources[] = [
61
-            $agg->getName() => [ $agg->getType() => $array ]
61
+            $agg->getName() => [$agg->getType() => $array]
62 62
         ];
63 63
 
64 64
         return $this;
Please login to merge, or discard this patch.
src/Query/Compound/BoolQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         foreach ($container as $type => $queries) {
44 44
             $queries = is_array($queries) ? $queries : [$queries];
45 45
 
46
-            array_walk($queries, function ($query) use ($type) {
46
+            array_walk($queries, function($query) use ($type) {
47 47
                 $this->add($query, $type);
48 48
             });
49 49
         }
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.