@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * Convert cellAddress to string, verify not null string. |
37 | 37 | */ |
38 | - private static function validateAddress(array|string|null $cellAddress): string |
|
38 | + private static function validateAddress(array | string | null $cellAddress): string |
|
39 | 39 | { |
40 | 40 | $cellAddress = Functions::flattenSingleValue($cellAddress); |
41 | 41 | if (!is_string($cellAddress) || !$cellAddress) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return array|string An array containing a cell or range of cells, or a string on error |
63 | 63 | */ |
64 | - public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string|array |
|
64 | + public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string | array |
|
65 | 65 | { |
66 | 66 | [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate()); |
67 | 67 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return array|float|int|string The relative position of the found item |
34 | 34 | */ |
35 | - public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array|string|int|float |
|
35 | + public static function MATCH(mixed $lookupValue, mixed $lookupArray, mixed $matchType = self::MATCHTYPE_LARGEST_VALUE): array | string | int | float |
|
36 | 36 | { |
37 | 37 | if (is_array($lookupValue)) { |
38 | 38 | return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $lookupValue, $lookupArray, $matchType); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | return ExcelError::NA(); |
78 | 78 | } |
79 | 79 | |
80 | - private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int|string|null |
|
80 | + private static function matchFirstValue(array $lookupArray, mixed $lookupValue): int | string | null |
|
81 | 81 | { |
82 | 82 | if (is_string($lookupValue)) { |
83 | 83 | $valueIsString = true; |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | return null; |
148 | 148 | } |
149 | 149 | |
150 | - private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int|string|null |
|
150 | + private static function matchSmallestValue(array $lookupArray, mixed $lookupValue): int | string | null |
|
151 | 151 | { |
152 | 152 | $valueKey = null; |
153 | 153 | if (is_string($lookupValue)) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @return array|string If an array of values is passed as the $testValue argument, then the returned result will also be |
48 | 48 | * an array with the same dimensions |
49 | 49 | */ |
50 | - public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array|string |
|
50 | + public static function cell(mixed $row, mixed $column, mixed $relativity = 1, mixed $referenceStyle = true, mixed $sheetName = ''): array | string |
|
51 | 51 | { |
52 | 52 | if ( |
53 | 53 | is_array($row) || is_array($column) |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
32 | 32 | * will also be an array with matching dimensions |
33 | 33 | */ |
34 | - public static function between(array|DateTimeInterface|float|int|string $endDate, array|DateTimeInterface|float|int|string $startDate): array|int|string |
|
34 | + public static function between(array | DateTimeInterface | float | int | string $endDate, array | DateTimeInterface | float | int | string $startDate): array | int | string |
|
35 | 35 | { |
36 | 36 | if (is_array($endDate) || is_array($startDate)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $endDate, $startDate); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
45 | 45 | * will also be an array with matching dimensions |
46 | 46 | */ |
47 | - public static function between(mixed $startDate = 0, mixed $endDate = 0, mixed $method = false): array|string|int |
|
47 | + public static function between(mixed $startDate = 0, mixed $endDate = 0, mixed $method = false): array | string | int |
|
48 | 48 | { |
49 | 49 | if (is_array($startDate) || is_array($endDate) || is_array($method)) { |
50 | 50 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
44 | 44 | * with the same dimensions |
45 | 45 | */ |
46 | - public static function fromHMS(array|int|float|bool|null|string $hour, array|int|float|bool|null|string $minute, array|int|float|bool|null|string $second): array|string|float|int|DateTime |
|
46 | + public static function fromHMS(array | int | float | bool | null | string $hour, array | int | float | bool | null | string $minute, array | int | float | bool | null | string $second): array | string | float | int | DateTime |
|
47 | 47 | { |
48 | 48 | if (is_array($hour) || is_array($minute) || is_array($second)) { |
49 | 49 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $hour, $minute, $second); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
44 | 44 | * will also be an array with matching dimensions |
45 | 45 | */ |
46 | - public static function fraction(mixed $startDate, mixed $endDate, array|int|string|null $method = 0): array|string|int|float |
|
46 | + public static function fraction(mixed $startDate, mixed $endDate, array | int | string | null $method = 0): array | string | int | float |
|
47 | 47 | { |
48 | 48 | if (is_array($startDate) || is_array($endDate) || is_array($method)) { |
49 | 49 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $method); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * If an array of values is passed for the $startDate or $endDays,arguments, then the returned result |
29 | 29 | * will also be an array with matching dimensions |
30 | 30 | */ |
31 | - public static function interval(mixed $startDate, mixed $endDate, array|string $unit = 'D') |
|
31 | + public static function interval(mixed $startDate, mixed $endDate, array | string $unit = 'D') |
|
32 | 32 | { |
33 | 33 | if (is_array($startDate) || is_array($endDate) || is_array($unit)) { |
34 | 34 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $startDate, $endDate, $unit); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * Decide whether it's time to set retVal. |
82 | 82 | */ |
83 | - private static function replaceRetValue(bool|int $retVal, string $unit, string $compare): null|bool|int |
|
83 | + private static function replaceRetValue(bool | int $retVal, string $unit, string $compare): null | bool | int |
|
84 | 84 | { |
85 | 85 | if ($retVal !== false || $unit !== $compare) { |
86 | 86 | return $retVal; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * If an array of values is passed as the argument, then the returned result will also be an array |
46 | 46 | * with the same dimensions |
47 | 47 | */ |
48 | - public static function number(mixed $dateValue, array|int|string|null $method = Constants::STARTWEEK_SUNDAY): array|int|string |
|
48 | + public static function number(mixed $dateValue, array | int | string | null $method = Constants::STARTWEEK_SUNDAY): array | int | string |
|
49 | 49 | { |
50 | 50 | if (is_array($dateValue) || is_array($method)) { |
51 | 51 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $method); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
106 | 106 | * with the same dimensions |
107 | 107 | */ |
108 | - public static function isoWeekNumber(mixed $dateValue): array|int|string |
|
108 | + public static function isoWeekNumber(mixed $dateValue): array | int | string |
|
109 | 109 | { |
110 | 110 | if (is_array($dateValue)) { |
111 | 111 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * If an array of values is passed as the argument, then the returned result will also be an array |
151 | 151 | * with the same dimensions |
152 | 152 | */ |
153 | - public static function day(null|array|float|int|string|bool $dateValue, mixed $style = 1): array|string|int |
|
153 | + public static function day(null | array | float | int | string | bool $dateValue, mixed $style = 1): array | string | int |
|
154 | 154 | { |
155 | 155 | if (is_array($dateValue) || is_array($style)) { |
156 | 156 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $dateValue, $style); |