@@ -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 | ); |
@@ -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 | { |
@@ -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; |