@@ -58,7 +58,7 @@ |
||
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; |
@@ -43,7 +43,7 @@ |
||
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 | } |
@@ -72,7 +72,7 @@ discard block |
||
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 |
||
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); |