@@ -23,8 +23,8 @@ |
||
23 | 23 | */ |
24 | 24 | public function __construct( |
25 | 25 | string $dimension, |
26 | - string|OrderByDirection $direction = OrderByDirection::ASC, |
|
27 | - string|SortingOrder $dimensionOrder = SortingOrder::LEXICOGRAPHIC |
|
26 | + string | OrderByDirection $direction = OrderByDirection::ASC, |
|
27 | + string | SortingOrder $dimensionOrder = SortingOrder::LEXICOGRAPHIC |
|
28 | 28 | ) { |
29 | 29 | $this->dimension = $dimension; |
30 | 30 | $this->direction = is_string($direction) ? OrderByDirection::make($direction) : $direction; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * @var string|string[] |
15 | 15 | */ |
16 | - protected string|array $valueOrValues; |
|
16 | + protected string | array $valueOrValues; |
|
17 | 17 | |
18 | 18 | protected bool $caseSensitive; |
19 | 19 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param string|string[] $valueOrValues |
24 | 24 | * @param bool $caseSensitive |
25 | 25 | */ |
26 | - public function __construct(array|string $valueOrValues, bool $caseSensitive = false) |
|
26 | + public function __construct(array | string $valueOrValues, bool $caseSensitive = false) |
|
27 | 27 | { |
28 | 28 | $this->valueOrValues = $valueOrValues; |
29 | 29 | $this->caseSensitive = $caseSensitive; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | protected NullHandling $nullHandling; |
19 | 19 | |
20 | - public function __construct(string $sprintfExpression, string|NullHandling $nullHandling = NullHandling::NULL_STRING) |
|
20 | + public function __construct(string $sprintfExpression, string | NullHandling $nullHandling = NullHandling::NULL_STRING) |
|
21 | 21 | { |
22 | 22 | $this->sprintfExpression = $sprintfExpression; |
23 | 23 | $this->nullHandling = is_string($nullHandling) ? NullHandling::from($nullHandling) : $nullHandling; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function __construct( |
51 | 51 | ?string $format = null, |
52 | - string|Granularity $granularity = null, |
|
52 | + string | Granularity $granularity = null, |
|
53 | 53 | ?string $locale = null, |
54 | 54 | ?string $timeZone = null, |
55 | 55 | ?bool $asMilliseconds = null |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function __construct( |
28 | 28 | string $regexp, |
29 | 29 | int $groupToExtract = 1, |
30 | - bool|string $keepMissingValue = false |
|
30 | + bool | string $keepMissingValue = false |
|
31 | 31 | ) { |
32 | 32 | $this->regexp = $regexp; |
33 | 33 | $this->groupToExtract = $groupToExtract; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * whether it is injective. If left unspecified, Druid will |
35 | 35 | * use the registered cluster-wide lookup configuration. |
36 | 36 | */ |
37 | - public function __construct(array $map, bool|string $keepMissingValue = false, bool $optimize = true, bool $injective = null) |
|
37 | + public function __construct(array $map, bool | string $keepMissingValue = false, bool $optimize = true, bool $injective = null) |
|
38 | 38 | { |
39 | 39 | $this->map = $map; |
40 | 40 | $this->optimize = $optimize; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function __construct( |
36 | 36 | string $lookupName, |
37 | - bool|string $replaceMissingValue = true, |
|
37 | + bool | string $replaceMissingValue = true, |
|
38 | 38 | bool $optimize = true, |
39 | 39 | ?bool $injective = null |
40 | 40 |
@@ -28,13 +28,13 @@ |
||
28 | 28 | public function __construct( |
29 | 29 | string $dimension, |
30 | 30 | string $outputName = null, |
31 | - string|DataType $outputType = DataType::STRING, |
|
31 | + string | DataType $outputType = DataType::STRING, |
|
32 | 32 | ExtractionInterface $extractionFunction = null |
33 | 33 | ) { |
34 | 34 | $this->dimension = $dimension; |
35 | 35 | $this->outputName = $outputName ?: $dimension; |
36 | 36 | |
37 | - if( empty($outputType)) { |
|
37 | + if (empty($outputType)) { |
|
38 | 38 | $outputType = DataType::STRING; |
39 | 39 | } else { |
40 | 40 | $outputType = is_string($outputType) ? DataType::from(strtolower($outputType)) : $outputType; |
@@ -12,12 +12,12 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * @var string|array<int|string,string> |
14 | 14 | */ |
15 | - protected string|array $registeredLookupFunctionOrMap; |
|
15 | + protected string | array $registeredLookupFunctionOrMap; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @var bool|string |
19 | 19 | */ |
20 | - protected string|bool $keepMissingValue; |
|
20 | + protected string | bool $keepMissingValue; |
|
21 | 21 | |
22 | 22 | protected bool $isOneToOne; |
23 | 23 | |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function __construct( |
41 | 41 | string $dimension, |
42 | - array|string $registeredLookupFunctionOrMap, |
|
42 | + array | string $registeredLookupFunctionOrMap, |
|
43 | 43 | string $outputName = '', |
44 | - bool|string $keepMissingValue = false, |
|
44 | + bool | string $keepMissingValue = false, |
|
45 | 45 | bool $isOneToOne = false |
46 | 46 | ) { |
47 | 47 | $this->dimension = $dimension; |