@@ -88,7 +88,7 @@ |
||
| 88 | 88 | /** |
| 89 | 89 | * Add range to aggregation. |
| 90 | 90 | */ |
| 91 | - public function addRange(null|int|float|string $from = null, null|int|float|string $to = null): static |
|
| 91 | + public function addRange(null | int | float | string $from = null, null | int | float | string $to = null): static |
|
| 92 | 92 | { |
| 93 | 93 | $range = array_filter( |
| 94 | 94 | [ |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | public function getArray(): array |
| 57 | 57 | { |
| 58 | - return array_filter( |
|
| 58 | + return array_filter( |
|
| 59 | 59 | [ |
| 60 | 60 | 'field' => $this->getField(), |
| 61 | 61 | 'shard_size' => $this->getShardSize(), |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'to' => $to, |
| 73 | 73 | 'key' => $key, |
| 74 | 74 | ], |
| 75 | - fn(mixed $v): bool => !is_null($v) |
|
| 75 | + fn(mixed $v) : bool => !is_null($v) |
|
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | if (empty($range)) { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | abstract protected function supportsNesting(): bool; |
| 35 | 35 | |
| 36 | - abstract protected function getArray(): array|stdClass|null; |
|
| 36 | + abstract protected function getArray(): array | stdClass | null; |
|
| 37 | 37 | |
| 38 | 38 | public function __construct(string $name) |
| 39 | 39 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | return []; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - public function getAggregation(string $name): AbstractAggregation|BuilderInterface|null |
|
| 80 | + public function getAggregation(string $name): AbstractAggregation | BuilderInterface | null |
|
| 81 | 81 | { |
| 82 | 82 | if ($this->aggregations && $this->aggregations->has($name)) { |
| 83 | 83 | return $this->aggregations->get($name); |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | return 'top_hits'; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - public function getArray(): array|stdClass |
|
| 90 | + public function getArray(): array | stdClass |
|
| 91 | 91 | { |
| 92 | 92 | $sortsOutput = null; |
| 93 | 93 | $addedSorts = array_filter($this->getSorts()); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function __construct( |
| 34 | 34 | string $name, |
| 35 | 35 | ?array $filters = [], |
| 36 | - bool $anonymous = false |
|
| 36 | + bool $anonymous = false |
|
| 37 | 37 | ) { |
| 38 | 38 | parent::__construct($name); |
| 39 | 39 | |