@@ -68,7 +68,7 @@ |
||
68 | 68 | return $this; |
69 | 69 | } |
70 | 70 | |
71 | - public function removeRange(int|float|null $from, int|float|null $to): bool |
|
71 | + public function removeRange(int | float | null $from, int | float | null $to): bool |
|
72 | 72 | { |
73 | 73 | foreach ($this->ranges as $key => $range) { |
74 | 74 | if (array_diff_assoc(array_filter(['from' => $from, 'to' => $to]), $range) === []) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | return 'reverse_nested'; |
51 | 51 | } |
52 | 52 | |
53 | - public function getArray(): stdClass|array |
|
53 | + public function getArray(): stdClass | array |
|
54 | 54 | { |
55 | 55 | $output = new stdClass(); |
56 | 56 | if ($this->getPath()) { |
@@ -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)) { |