@@ -133,7 +133,7 @@ |
||
| 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 | ); |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use ONGR\ElasticsearchDSL\Aggregation\AbstractAggregation; |
| 15 | 15 | use ONGR\ElasticsearchDSL\Aggregation\Type\BucketingTrait; |
| 16 | -use ONGR\ElasticsearchDSL\BuilderInterface; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Class representing AutoDateHistogramAggregation. |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace ONGR\ElasticsearchDSL\Aggregation\Pipeline; |
| 13 | 13 | |
| 14 | -use ONGR\ElasticsearchDSL\BuilderInterface; |
|
| 15 | 14 | use ONGR\ElasticsearchDSL\Sort\FieldSort; |
| 16 | 15 | |
| 17 | 16 | /** |
@@ -133,7 +133,7 @@ |
||
| 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 | ); |
@@ -87,7 +87,7 @@ |
||
| 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 | ); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | public function addSource(BuilderInterface $agg) |
| 55 | 55 | { |
| 56 | 56 | $this->sources[] = [ |
| 57 | - $agg->getName() => [ $agg->getType() => $agg->getArray() ] |
|
| 57 | + $agg->getName() => [$agg->getType() => $agg->getArray()] |
|
| 58 | 58 | ]; |
| 59 | 59 | |
| 60 | 60 | return $this; |
@@ -133,7 +133,7 @@ |
||
| 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 | ); |