@@ -79,7 +79,7 @@ |
||
| 79 | 79 | 'script' => $this->getScript(), |
| 80 | 80 | 'sigma' => $this->getSigma(), |
| 81 | 81 | ], |
| 82 | - function ($val) { |
|
| 82 | + function($val) { |
|
| 83 | 83 | return ($val || is_numeric($val)); |
| 84 | 84 | } |
| 85 | 85 | ); |
@@ -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 | ); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | * Returns sub aggregation. |
| 109 | 109 | * @param string $name Aggregation name to return. |
| 110 | 110 | * |
| 111 | - * @return AbstractAggregation|NamedBuilderInterface|null |
|
| 111 | + * @return \ONGR\ElasticsearchDSL\BuilderInterface|null |
|
| 112 | 112 | */ |
| 113 | 113 | public function getAggregation($name) |
| 114 | 114 | { |