@@ -21,7 +21,7 @@ |
||
21 | 21 | * @param bool $rollup |
22 | 22 | * @param IntervalCollection $intervals |
23 | 23 | */ |
24 | - public function __construct(string|Granularity $queryGranularity, bool $rollup, IntervalCollection $intervals) |
|
24 | + public function __construct(string | Granularity $queryGranularity, bool $rollup, IntervalCollection $intervals) |
|
25 | 25 | { |
26 | 26 | $this->queryGranularity = is_string($queryGranularity) ? Granularity::from(strtolower($queryGranularity)) : $queryGranularity; |
27 | 27 | $this->rollup = $rollup; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * @var string|string[] |
23 | 23 | */ |
24 | - protected string|array $value; |
|
24 | + protected string | array $value; |
|
25 | 25 | |
26 | 26 | protected bool $caseSensitive; |
27 | 27 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function __construct( |
40 | 40 | string $dimension, |
41 | - array|string $valueOrValues, |
|
41 | + array | string $valueOrValues, |
|
42 | 42 | bool $caseSensitive = false, |
43 | 43 | ?ExtractionInterface $extractionFunction = null |
44 | 44 | ) { |
@@ -41,12 +41,12 @@ |
||
41 | 41 | */ |
42 | 42 | public function __construct( |
43 | 43 | string $dimension, |
44 | - string|BoundOperator $operator, |
|
44 | + string | BoundOperator $operator, |
|
45 | 45 | string $value, |
46 | - string|SortingOrder $ordering = null, |
|
46 | + string | SortingOrder $ordering = null, |
|
47 | 47 | ?ExtractionInterface $extractionFunction = null |
48 | 48 | ) { |
49 | - if(is_string($ordering)) { |
|
49 | + if (is_string($ordering)) { |
|
50 | 50 | $ordering = SortingOrder::from(strtolower($ordering)); |
51 | 51 | } |
52 | 52 |
@@ -43,9 +43,9 @@ |
||
43 | 43 | */ |
44 | 44 | public function __construct( |
45 | 45 | string $dimension, |
46 | - int|string $minValue, |
|
47 | - int|string $maxValue, |
|
48 | - string|SortingOrder $ordering = null, |
|
46 | + int | string $minValue, |
|
47 | + int | string $maxValue, |
|
48 | + string | SortingOrder $ordering = null, |
|
49 | 49 | ?ExtractionInterface $extractionFunction = null |
50 | 50 | ) { |
51 | 51 | if (is_string($ordering)) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * |
37 | 37 | * @return $this |
38 | 38 | */ |
39 | - public function field(string|FlattenFieldType $flattenFieldType, string $name, string $expr = null): self |
|
39 | + public function field(string | FlattenFieldType $flattenFieldType, string $name, string $expr = null): self |
|
40 | 40 | { |
41 | 41 | $type = is_string($flattenFieldType) ? FlattenFieldType::from(strtolower($flattenFieldType)) : $flattenFieldType; |
42 | 42 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * |
12 | 12 | * @var string[]|string |
13 | 13 | */ |
14 | - protected string|array $paths; |
|
14 | + protected string | array $paths; |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * HdfsInputSource constructor. |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * like * are supported in these paths. Empty files located under one of the given paths |
21 | 21 | * will be skipped. |
22 | 22 | */ |
23 | - public function __construct(array|string $paths) |
|
23 | + public function __construct(array | string $paths) |
|
24 | 24 | { |
25 | 25 | $this->paths = $paths; |
26 | 26 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * @var null|string|string[] |
17 | 17 | */ |
18 | - protected string|array|null $password; |
|
18 | + protected string | array | null $password; |
|
19 | 19 | |
20 | 20 | /** |
21 | 21 | * HttpInputSource constructor. |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @param string|null $username |
25 | 25 | * @param string|string[]|null $password |
26 | 26 | */ |
27 | - public function __construct(array $uris, ?string $username = null, array|string $password = null) |
|
27 | + public function __construct(array $uris, ?string $username = null, array | string $password = null) |
|
28 | 28 | { |
29 | 29 | $this->uris = $uris; |
30 | 30 | $this->username = $username; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @return $this |
35 | 35 | * @see https://druid.apache.org/docs/latest/misc/math-expr.html |
36 | 36 | */ |
37 | - public function virtualColumn(string $expression, string $as, string|DataType $outputType = DataType::STRING): self |
|
37 | + public function virtualColumn(string $expression, string $as, string | DataType $outputType = DataType::STRING): self |
|
38 | 38 | { |
39 | 39 | $this->virtualColumns[] = new VirtualColumn($expression, $as, $outputType); |
40 | 40 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * @return $this |
21 | 21 | */ |
22 | - public function tuningConfig(array|TuningConfig $tuningConfig): self |
|
22 | + public function tuningConfig(array | TuningConfig $tuningConfig): self |
|
23 | 23 | { |
24 | 24 | if (!$tuningConfig instanceof TuningConfig) { |
25 | 25 | $tuningConfig = new TuningConfig($tuningConfig); |