Completed
Push — master ( 197eed...6f0e33 )
by Simonas
10:57 queued 11s
created
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/Query/Compound/FunctionScoreQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                 'modifier' => $modifier,
73 73
                 'missing' => $missing
74 74
             ],
75
-        ], function ($item) {
75
+        ], function($item) {
76 76
             return $item !== null;
77 77
         });
78 78
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     public function addRandomFunction($seed = null, BuilderInterface $query = null)
166 166
     {
167 167
         $function = [
168
-            'random_score' => $seed ? [ 'seed' => $seed ] : new \stdClass(),
168
+            'random_score' => $seed ? ['seed' => $seed] : new \stdClass(),
169 169
         ];
170 170
 
171 171
         $this->applyFilter($function, $query);
Please login to merge, or discard this patch.