Completed
Pull Request — master (#180)
by
unknown
02:27
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/Query/FunctionScoreQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     public function addRandomFunction($seed = null, BuilderInterface $filter = null)
163 163
     {
164 164
         $function = [
165
-            'random_score' => $seed ? [ 'seed' => $seed ] : new \stdClass(),
165
+            'random_score' => $seed ? ['seed' => $seed] : new \stdClass(),
166 166
         ];
167 167
 
168 168
         $this->applyFilter($function, $filter);
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 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/Aggregation/Metric/ExtendedStatsAggregation.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/Aggregation/Metric/PercentileRanksAggregation.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/Aggregation/Metric/PercentilesAggregation.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/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/Aggregation/Metric/CardinalityAggregation.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.