@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
45 | 45 | * with the same dimensions |
46 | 46 | */ |
47 | - public static function toBinary($value, $places = null): array|string |
|
47 | + public static function toBinary($value, $places = null): array | string |
|
48 | 48 | { |
49 | 49 | if (is_array($value) || is_array($places)) { |
50 | 50 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
143 | 143 | * with the same dimensions |
144 | 144 | */ |
145 | - public static function toHex($value, $places = null): array|string |
|
145 | + public static function toHex($value, $places = null): array | string |
|
146 | 146 | { |
147 | 147 | if (is_array($value) || is_array($places)) { |
148 | 148 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $places); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | * |
64 | 64 | * @return array|string An array containing a cell or range of cells, or a string on error |
65 | 65 | */ |
66 | - public static function INDIRECT($cellAddress, $a1fmt, Cell $cell): string|array |
|
66 | + public static function INDIRECT($cellAddress, $a1fmt, Cell $cell): string | array |
|
67 | 67 | { |
68 | 68 | [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate()); |
69 | 69 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * |
33 | 33 | * @return array|int|string The relative position of the found item |
34 | 34 | */ |
35 | - public static function MATCH($lookupValue, $lookupArray, $matchType = self::MATCHTYPE_LARGEST_VALUE): array|string|int|float |
|
35 | + public static function MATCH($lookupValue, $lookupArray, $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); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * @param mixed $lookupValue |
91 | 91 | */ |
92 | - private static function matchFirstValue(array $lookupArray, $lookupValue): int|string|null |
|
92 | + private static function matchFirstValue(array $lookupArray, $lookupValue): int | string | null |
|
93 | 93 | { |
94 | 94 | if (is_string($lookupValue)) { |
95 | 95 | $valueIsString = true; |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * @param mixed $lookupValue |
169 | 169 | */ |
170 | - private static function matchSmallestValue(array $lookupArray, $lookupValue): int|string|null |
|
170 | + private static function matchSmallestValue(array $lookupArray, $lookupValue): int | string | null |
|
171 | 171 | { |
172 | 172 | $valueKey = null; |
173 | 173 | if (is_string($lookupValue)) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @return int|int[] |
44 | 44 | */ |
45 | - public static function COLUMN($cellAddress = null, ?Cell $cell = null): int|array |
|
45 | + public static function COLUMN($cellAddress = null, ?Cell $cell = null): int | array |
|
46 | 46 | { |
47 | 47 | if (self::cellAddressNullOrWhitespace($cellAddress)) { |
48 | 48 | return self::cellColumn($cell); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * |
138 | 138 | * @return int|mixed[] |
139 | 139 | */ |
140 | - public static function ROW($cellAddress = null, ?Cell $cell = null): int|array |
|
140 | + public static function ROW($cellAddress = null, ?Cell $cell = null): int | array |
|
141 | 141 | { |
142 | 142 | if (self::cellAddressNullOrWhitespace($cellAddress)) { |
143 | 143 | return self::cellRow($cell); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * |
42 | 42 | * @return array|string An array containing a cell or range of cells, or a string on error |
43 | 43 | */ |
44 | - public static function OFFSET($cellAddress = null, $rows = 0, $columns = 0, $height = null, $width = null, ?Cell $cell = null): string|array |
|
44 | + public static function OFFSET($cellAddress = null, $rows = 0, $columns = 0, $height = null, $width = null, ?Cell $cell = null): string | array |
|
45 | 45 | { |
46 | 46 | $rows = Functions::flattenSingleValue($rows); |
47 | 47 | $columns = Functions::flattenSingleValue($columns); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * Return result in one of three formats. |
136 | 136 | */ |
137 | - public static function returnIn3FormatsArray(array $dateArray, bool $noFrac = false): DateTime|float|int |
|
137 | + public static function returnIn3FormatsArray(array $dateArray, bool $noFrac = false): DateTime | float | int |
|
138 | 138 | { |
139 | 139 | $retType = Functions::getReturnDateType(); |
140 | 140 | if ($retType === Functions::RETURNDATE_PHP_DATETIME_OBJECT) { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | /** |
187 | 187 | * Return result in one of three formats. |
188 | 188 | */ |
189 | - public static function returnIn3FormatsObject(DateTime $PHPDateObject): DateTime|float|int |
|
189 | + public static function returnIn3FormatsObject(DateTime $PHPDateObject): DateTime | float | int |
|
190 | 190 | { |
191 | 191 | $retType = Functions::getReturnDateType(); |
192 | 192 | if ($retType === Functions::RETURNDATE_PHP_DATETIME_OBJECT) { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | * |
236 | 236 | * @param mixed $number |
237 | 237 | */ |
238 | - public static function validateNumericNull($number): int|float |
|
238 | + public static function validateNumericNull($number): int | float |
|
239 | 239 | { |
240 | 240 | $number = Functions::flattenSingleValue($number); |
241 | 241 | if ($number === null) { |
@@ -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($hour, $minute, $second): array|string|float|int|DateTime |
|
46 | + public static function fromHMS($hour, $minute, $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($startDate, $endDate, $method = 0): array|string|int|float |
|
46 | + public static function fraction($startDate, $endDate, $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 numbers is passed as the argument, then the returned result will also be an array |
29 | 29 | * with the same dimensions |
30 | 30 | */ |
31 | - public static function day($dateValue): array|int|string |
|
31 | + public static function day($dateValue): array | int | string |
|
32 | 32 | { |
33 | 33 | if (is_array($dateValue)) { |
34 | 34 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
70 | 70 | * with the same dimensions |
71 | 71 | */ |
72 | - public static function month($dateValue): array|string|int |
|
72 | + public static function month($dateValue): array | string | int |
|
73 | 73 | { |
74 | 74 | if (is_array($dateValue)) { |
75 | 75 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
109 | 109 | * with the same dimensions |
110 | 110 | */ |
111 | - public static function year($dateValue): array|string|int |
|
111 | + public static function year($dateValue): array | string | int |
|
112 | 112 | { |
113 | 113 | if (is_array($dateValue)) { |
114 | 114 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue); |