@@ -32,7 +32,7 @@ |
||
32 | 32 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
33 | 33 | * with the same dimensions |
34 | 34 | */ |
35 | - public static function BESSELK($x, $ord): array|string|float |
|
35 | + public static function BESSELK($x, $ord): array | string | float |
|
36 | 36 | { |
37 | 37 | if (is_array($x) || is_array($ord)) { |
38 | 38 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
36 | 36 | * with the same dimensions |
37 | 37 | */ |
38 | - public static function ERF($lower, $upper = null): array|float|string |
|
38 | + public static function ERF($lower, $upper = null): array | float | string |
|
39 | 39 | { |
40 | 40 | if (is_array($lower) || is_array($upper)) { |
41 | 41 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $lower, $upper); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
92 | 92 | * with the same dimensions |
93 | 93 | */ |
94 | - public static function IMCONJUGATE($complexNumber): array|string |
|
94 | + public static function IMCONJUGATE($complexNumber): array | string |
|
95 | 95 | { |
96 | 96 | if (is_array($complexNumber)) { |
97 | 97 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
122 | 122 | * with the same dimensions |
123 | 123 | */ |
124 | - public static function IMCOS($complexNumber): array|string |
|
124 | + public static function IMCOS($complexNumber): array | string |
|
125 | 125 | { |
126 | 126 | if (is_array($complexNumber)) { |
127 | 127 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
152 | 152 | * with the same dimensions |
153 | 153 | */ |
154 | - public static function IMCOSH($complexNumber): array|string |
|
154 | + public static function IMCOSH($complexNumber): array | string |
|
155 | 155 | { |
156 | 156 | if (is_array($complexNumber)) { |
157 | 157 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
182 | 182 | * with the same dimensions |
183 | 183 | */ |
184 | - public static function IMCOT($complexNumber): array|string |
|
184 | + public static function IMCOT($complexNumber): array | string |
|
185 | 185 | { |
186 | 186 | if (is_array($complexNumber)) { |
187 | 187 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
212 | 212 | * with the same dimensions |
213 | 213 | */ |
214 | - public static function IMCSC($complexNumber): array|string |
|
214 | + public static function IMCSC($complexNumber): array | string |
|
215 | 215 | { |
216 | 216 | if (is_array($complexNumber)) { |
217 | 217 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
242 | 242 | * with the same dimensions |
243 | 243 | */ |
244 | - public static function IMCSCH($complexNumber): array|string |
|
244 | + public static function IMCSCH($complexNumber): array | string |
|
245 | 245 | { |
246 | 246 | if (is_array($complexNumber)) { |
247 | 247 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
272 | 272 | * with the same dimensions |
273 | 273 | */ |
274 | - public static function IMSIN($complexNumber): array|string |
|
274 | + public static function IMSIN($complexNumber): array | string |
|
275 | 275 | { |
276 | 276 | if (is_array($complexNumber)) { |
277 | 277 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
302 | 302 | * with the same dimensions |
303 | 303 | */ |
304 | - public static function IMSINH($complexNumber): array|string |
|
304 | + public static function IMSINH($complexNumber): array | string |
|
305 | 305 | { |
306 | 306 | if (is_array($complexNumber)) { |
307 | 307 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
332 | 332 | * with the same dimensions |
333 | 333 | */ |
334 | - public static function IMSEC($complexNumber): array|string |
|
334 | + public static function IMSEC($complexNumber): array | string |
|
335 | 335 | { |
336 | 336 | if (is_array($complexNumber)) { |
337 | 337 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
362 | 362 | * with the same dimensions |
363 | 363 | */ |
364 | - public static function IMSECH($complexNumber): array|string |
|
364 | + public static function IMSECH($complexNumber): array | string |
|
365 | 365 | { |
366 | 366 | if (is_array($complexNumber)) { |
367 | 367 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
392 | 392 | * with the same dimensions |
393 | 393 | */ |
394 | - public static function IMTAN($complexNumber): array|string |
|
394 | + public static function IMTAN($complexNumber): array | string |
|
395 | 395 | { |
396 | 396 | if (is_array($complexNumber)) { |
397 | 397 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
422 | 422 | * with the same dimensions |
423 | 423 | */ |
424 | - public static function IMSQRT($complexNumber): array|string |
|
424 | + public static function IMSQRT($complexNumber): array | string |
|
425 | 425 | { |
426 | 426 | if (is_array($complexNumber)) { |
427 | 427 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
457 | 457 | * with the same dimensions |
458 | 458 | */ |
459 | - public static function IMLN($complexNumber): array|string |
|
459 | + public static function IMLN($complexNumber): array | string |
|
460 | 460 | { |
461 | 461 | if (is_array($complexNumber)) { |
462 | 462 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
491 | 491 | * with the same dimensions |
492 | 492 | */ |
493 | - public static function IMLOG10($complexNumber): array|string |
|
493 | + public static function IMLOG10($complexNumber): array | string |
|
494 | 494 | { |
495 | 495 | if (is_array($complexNumber)) { |
496 | 496 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -524,7 +524,7 @@ discard block |
||
524 | 524 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
525 | 525 | * with the same dimensions |
526 | 526 | */ |
527 | - public static function IMLOG2($complexNumber): array|string |
|
527 | + public static function IMLOG2($complexNumber): array | string |
|
528 | 528 | { |
529 | 529 | if (is_array($complexNumber)) { |
530 | 530 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
559 | 559 | * with the same dimensions |
560 | 560 | */ |
561 | - public static function IMEXP($complexNumber): array|string |
|
561 | + public static function IMEXP($complexNumber): array | string |
|
562 | 562 | { |
563 | 563 | if (is_array($complexNumber)) { |
564 | 564 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $complexNumber); |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
591 | 591 | * with the same dimensions |
592 | 592 | */ |
593 | - public static function IMPOWER($complexNumber, $realNumber): array|string |
|
593 | + public static function IMPOWER($complexNumber, $realNumber): array | string |
|
594 | 594 | { |
595 | 595 | if (is_array($complexNumber) || is_array($realNumber)) { |
596 | 596 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $complexNumber, $realNumber); |
@@ -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) { |