@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | { |
| 10 | 10 | protected string $column; |
| 11 | 11 | |
| 12 | - protected string|int|float|null $value; |
|
| 12 | + protected string | int | float | null $value; |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * @var \Level23\Druid\Types\DataType |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct( |
| 28 | 28 | string $column, |
| 29 | - string|int|float|null $value, |
|
| 29 | + string | int | float | null $value, |
|
| 30 | 30 | DataType $matchValueType = null |
| 31 | 31 | ) { |
| 32 | 32 | if (is_null($matchValueType)) { |
@@ -37,11 +37,11 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function __construct( |
| 39 | 39 | string $dimension, |
| 40 | - string|BoundOperator $operator, |
|
| 40 | + string | BoundOperator $operator, |
|
| 41 | 41 | string $value, |
| 42 | - string|SortingOrder $ordering = null |
|
| 42 | + string | SortingOrder $ordering = null |
|
| 43 | 43 | ) { |
| 44 | - if(is_string($ordering)) { |
|
| 44 | + if (is_string($ordering)) { |
|
| 45 | 45 | $ordering = SortingOrder::from(strtolower($ordering)); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * @var string|string[] |
| 19 | 19 | */ |
| 20 | - protected string|array $value; |
|
| 20 | + protected string | array $value; |
|
| 21 | 21 | |
| 22 | 22 | protected bool $caseSensitive; |
| 23 | 23 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function __construct( |
| 35 | 35 | string $dimension, |
| 36 | - array|string $valueOrValues, |
|
| 36 | + array | string $valueOrValues, |
|
| 37 | 37 | bool $caseSensitive = false |
| 38 | 38 | ) { |
| 39 | 39 | $this->dimension = $dimension; |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | * @return $this |
| 61 | 61 | */ |
| 62 | 62 | public function where( |
| 63 | - Closure|string|FilterInterface $filterOrDimensionOrClosure, |
|
| 64 | - int|string|float|bool|null $operator = null, |
|
| 65 | - array|int|string|float|bool $value = null, |
|
| 63 | + Closure | string | FilterInterface $filterOrDimensionOrClosure, |
|
| 64 | + int | string | float | bool | null $operator = null, |
|
| 65 | + array | int | string | float | bool $value = null, |
|
| 66 | 66 | string $boolean = 'and' |
| 67 | 67 | ): self { |
| 68 | 68 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * @see https://druid.apache.org/docs/latest/querying/filters/#array-contains-element-filter |
| 244 | 244 | * |
| 245 | 245 | */ |
| 246 | - public function whereArrayContains(string $column, int|float|string|null $value, string $boolean = 'and'): self |
|
| 246 | + public function whereArrayContains(string $column, int | float | string | null $value, string $boolean = 'and'): self |
|
| 247 | 247 | { |
| 248 | 248 | $filter = new ArrayContainsFilter($column, $value); |
| 249 | 249 | |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | * |
| 260 | 260 | * @return $this |
| 261 | 261 | */ |
| 262 | - public function orWhereArrayContains(string $column, int|float|string|null $value): self |
|
| 262 | + public function orWhereArrayContains(string $column, int | float | string | null $value): self |
|
| 263 | 263 | { |
| 264 | 264 | return $this->whereArrayContains($column, $value, 'or'); |
| 265 | 265 | } |
@@ -315,9 +315,9 @@ discard block |
||
| 315 | 315 | * @see \Level23\Druid\Concerns\HasFilter::where() |
| 316 | 316 | */ |
| 317 | 317 | public function orWhere( |
| 318 | - string|FilterInterface|Closure $filterOrDimension, |
|
| 319 | - string|int|float|bool $operator = null, |
|
| 320 | - array|int|float|string|bool $value = null |
|
| 318 | + string | FilterInterface | Closure $filterOrDimension, |
|
| 319 | + string | int | float | bool $operator = null, |
|
| 320 | + array | int | float | string | bool $value = null |
|
| 321 | 321 | ): self { |
| 322 | 322 | return $this->where($filterOrDimension, $operator, $value, 'or'); |
| 323 | 323 | } |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | * |
| 440 | 440 | * @return $this |
| 441 | 441 | */ |
| 442 | - public function whereColumn(Closure|string $dimensionA, Closure|string $dimensionB, string $boolean = 'and'): self |
|
| 442 | + public function whereColumn(Closure | string $dimensionA, Closure | string $dimensionB, string $boolean = 'and'): self |
|
| 443 | 443 | { |
| 444 | 444 | $filter = new ColumnComparisonFilter( |
| 445 | 445 | $this->columnCompareDimension($dimensionA), |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | * |
| 469 | 469 | * @return $this |
| 470 | 470 | */ |
| 471 | - public function orWhereColumn(Closure|string $dimensionA, Closure|string $dimensionB): self |
|
| 471 | + public function orWhereColumn(Closure | string $dimensionA, Closure | string $dimensionB): self |
|
| 472 | 472 | { |
| 473 | 473 | return $this->whereColumn($dimensionA, $dimensionB, 'or'); |
| 474 | 474 | } |
@@ -499,8 +499,8 @@ discard block |
||
| 499 | 499 | */ |
| 500 | 500 | public function whereBetween( |
| 501 | 501 | string $dimension, |
| 502 | - int|float|string $minValue, |
|
| 503 | - int|float|string $maxValue, |
|
| 502 | + int | float | string $minValue, |
|
| 503 | + int | float | string $maxValue, |
|
| 504 | 504 | ?DataType $valueType = null, |
| 505 | 505 | string $boolean = 'and' |
| 506 | 506 | ): self { |
@@ -534,8 +534,8 @@ discard block |
||
| 534 | 534 | */ |
| 535 | 535 | public function orWhereBetween( |
| 536 | 536 | string $dimension, |
| 537 | - int|float|string $minValue, |
|
| 538 | - int|float|string $maxValue, |
|
| 537 | + int | float | string $minValue, |
|
| 538 | + int | float | string $maxValue, |
|
| 539 | 539 | ?DataType $valueType = null |
| 540 | 540 | ): self { |
| 541 | 541 | return $this->whereBetween($dimension, $minValue, $maxValue, $valueType, 'or'); |
@@ -785,7 +785,7 @@ discard block |
||
| 785 | 785 | * @return \Level23\Druid\Dimensions\DimensionInterface |
| 786 | 786 | * @throws InvalidArgumentException |
| 787 | 787 | */ |
| 788 | - protected function columnCompareDimension(Closure|string $dimension): DimensionInterface |
|
| 788 | + protected function columnCompareDimension(Closure | string $dimension): DimensionInterface |
|
| 789 | 789 | { |
| 790 | 790 | if ($dimension instanceof Closure) { |
| 791 | 791 | $builder = new DimensionBuilder(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function __construct( |
| 14 | 14 | protected ParseSpecInterface $parseSpec, |
| 15 | 15 | protected string $uri, |
| 16 | - protected null|int|string $pollPeriod = null, |
|
| 16 | + protected null | int | string $pollPeriod = null, |
|
| 17 | 17 | protected ?int $maxHeapPercentage = null, |
| 18 | 18 | protected bool $injective = false, |
| 19 | 19 | protected int $firstCacheTimeoutMs = 0 |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function __construct( |
| 50 | 50 | protected string $connectUri, |
| 51 | - protected string|null $username, |
|
| 52 | - protected string|null $password, |
|
| 51 | + protected string | null $username, |
|
| 52 | + protected string | null $password, |
|
| 53 | 53 | protected string $table, |
| 54 | 54 | protected string $keyColumn, |
| 55 | 55 | protected string $valueColumn, |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | protected ?string $tsColumn = null, |
| 58 | 58 | protected ?int $jitterSeconds = null, |
| 59 | 59 | protected ?int $loadTimeoutSeconds = null, |
| 60 | - protected null|int|string $pollPeriod = null, |
|
| 60 | + protected null | int | string $pollPeriod = null, |
|
| 61 | 61 | protected ?int $maxHeapPercentage = null, |
| 62 | 62 | protected bool $injective = false, |
| 63 | 63 | protected int $firstCacheTimeoutMs = 0 |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function __construct( |
| 19 | 19 | protected string $kafkaTopic, |
| 20 | - protected string|array $servers, |
|
| 20 | + protected string | array $servers, |
|
| 21 | 21 | protected array $kafkaProperties = [], |
| 22 | 22 | protected int $connectTimeout = 0, |
| 23 | 23 | protected bool $isOneToOne = false |
@@ -21,9 +21,9 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | protected int $firstCacheTimeoutMs = 0; |
| 23 | 23 | |
| 24 | - protected int|string|null $pollPeriod = null; |
|
| 24 | + protected int | string | null $pollPeriod = null; |
|
| 25 | 25 | |
| 26 | - protected int|null $maxHeapPercentage = null; |
|
| 26 | + protected int | null $maxHeapPercentage = null; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @var class-string<\Level23\Druid\Lookups\LookupInterface>|null |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | * |
| 276 | 276 | * @return $this |
| 277 | 277 | */ |
| 278 | - public function pollPeriod(int|string $period): self |
|
| 278 | + public function pollPeriod(int | string $period): self |
|
| 279 | 279 | { |
| 280 | 280 | $this->pollPeriod = $period; |
| 281 | 281 | |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | public function kafka( |
| 371 | 371 | string $kafkaTopic, |
| 372 | - string|array $servers, |
|
| 372 | + string | array $servers, |
|
| 373 | 373 | array $kafkaProperties = [], |
| 374 | 374 | int $connectTimeout = 0 |
| 375 | 375 | ): LookupBuilder { |
@@ -409,8 +409,8 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | public function jdbc( |
| 411 | 411 | string $connectUri, |
| 412 | - string|null $username, |
|
| 413 | - string|null $password, |
|
| 412 | + string | null $username, |
|
| 413 | + string | null $password, |
|
| 414 | 414 | string $table, |
| 415 | 415 | string $keyColumn, |
| 416 | 416 | string $valueColumn, |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * @param int $skipHeaderRows |
| 18 | 18 | */ |
| 19 | 19 | public function __construct( |
| 20 | - protected null|array $columns, |
|
| 20 | + protected null | array $columns, |
|
| 21 | 21 | protected ?string $keyColumn = null, |
| 22 | 22 | protected ?string $valueColumn = null, |
| 23 | 23 | protected ?string $delimiter = null, |