@@ -31,7 +31,7 @@ |
||
31 | 31 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
32 | 32 | * with the same dimensions |
33 | 33 | */ |
34 | - public static function distribution(mixed $value, mixed $u, mixed $v, mixed $cumulative): array|string|float |
|
34 | + public static function distribution(mixed $value, mixed $u, mixed $v, mixed $cumulative): array | string | float |
|
35 | 35 | { |
36 | 36 | if (is_array($value) || is_array($u) || is_array($v) || is_array($cumulative)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $u, $v, $cumulative); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
30 | 30 | * with the same dimensions |
31 | 31 | */ |
32 | - public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $cumulative): array|string|float |
|
32 | + public static function distribution(mixed $value, mixed $alpha, mixed $beta, mixed $cumulative): array | string | float |
|
33 | 33 | { |
34 | 34 | if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($cumulative)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $cumulative); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
34 | 34 | * with the same dimensions |
35 | 35 | */ |
36 | - public static function distribution(mixed $value, mixed $mean, mixed $stdDev, mixed $cumulative): array|string|float |
|
36 | + public static function distribution(mixed $value, mixed $mean, mixed $stdDev, mixed $cumulative): array | string | float |
|
37 | 37 | { |
38 | 38 | if (is_array($value) || is_array($mean) || is_array($stdDev) || is_array($cumulative)) { |
39 | 39 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev, $cumulative); |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
76 | 76 | * with the same dimensions |
77 | 77 | */ |
78 | - public static function inverse(mixed $probability, mixed $mean, mixed $stdDev): array|string|float |
|
78 | + public static function inverse(mixed $probability, mixed $mean, mixed $stdDev): array | string | float |
|
79 | 79 | { |
80 | 80 | if (is_array($probability) || is_array($mean) || is_array($stdDev)) { |
81 | 81 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $mean, $stdDev); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
23 | 23 | * with the same dimensions |
24 | 24 | */ |
25 | - public static function gamma(mixed $value): array|string|float |
|
25 | + public static function gamma(mixed $value): array | string | float |
|
26 | 26 | { |
27 | 27 | if (is_array($value)) { |
28 | 28 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
131 | 131 | * with the same dimensions |
132 | 132 | */ |
133 | - public static function ln(mixed $value): array|string|float |
|
133 | + public static function ln(mixed $value): array | string | float |
|
134 | 134 | { |
135 | 135 | if (is_array($value)) { |
136 | 136 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * |
75 | 75 | * @return float|string (string if result is an error) |
76 | 76 | */ |
77 | - public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string|float |
|
77 | + public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string | float |
|
78 | 78 | { |
79 | 79 | $valueSet = Functions::flattenArray($valueSet); |
80 | 80 | $value = Functions::flattenSingleValue($value); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @param mixed ...$args Data values |
19 | 19 | */ |
20 | - public static function sumSquares(mixed ...$args): string|float |
|
20 | + public static function sumSquares(mixed ...$args): string | float |
|
21 | 21 | { |
22 | 22 | $aArgs = Functions::flattenArrayIndexed($args); |
23 | 23 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @return float|string |
61 | 61 | */ |
62 | - public static function kurtosis(...$args): string|int|float |
|
62 | + public static function kurtosis(...$args): string | int | float |
|
63 | 63 | { |
64 | 64 | $aArgs = Functions::flattenArrayIndexed($args); |
65 | 65 | $mean = Averages::average($aArgs); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * |
105 | 105 | * @return float|int|string The result, or a string containing an error |
106 | 106 | */ |
107 | - public static function skew(...$args): string|int|float |
|
107 | + public static function skew(...$args): string | int | float |
|
108 | 108 | { |
109 | 109 | $aArgs = Functions::flattenArrayIndexed($args); |
110 | 110 | $mean = Averages::average($aArgs); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @return float|string (string if result is an error) |
22 | 22 | */ |
23 | - public static function averageDeviations(mixed ...$args): string|float |
|
23 | + public static function averageDeviations(mixed ...$args): string | float |
|
24 | 24 | { |
25 | 25 | $aArgs = Functions::flattenArrayIndexed($args); |
26 | 26 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return float|string (string if result is an error) |
71 | 71 | */ |
72 | - public static function average(mixed ...$args): string|int|float |
|
72 | + public static function average(mixed ...$args): string | int | float |
|
73 | 73 | { |
74 | 74 | $returnValue = $aCount = 0; |
75 | 75 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @return float|string (string if result is an error) |
110 | 110 | */ |
111 | - public static function averageA(mixed ...$args): string|int|float |
|
111 | + public static function averageA(mixed ...$args): string | int | float |
|
112 | 112 | { |
113 | 113 | $returnValue = null; |
114 | 114 |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @return array|string The result, or a string containing an error |
214 | 214 | */ |
215 | - public static function LINEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
215 | + public static function LINEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
216 | 216 | { |
217 | 217 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
218 | 218 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | * |
274 | 274 | * @return array|string The result, or a string containing an error |
275 | 275 | */ |
276 | - public static function LOGEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
276 | + public static function LOGEST(array $yValues, $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
277 | 277 | { |
278 | 278 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
279 | 279 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @return float|string (string if result is an error) |
21 | 21 | */ |
22 | - public static function VAR(mixed ...$args): float|string |
|
22 | + public static function VAR(mixed ...$args): float | string |
|
23 | 23 | { |
24 | 24 | $returnValue = ExcelError::DIV0(); |
25 | 25 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return float|string (string if result is an error) |
63 | 63 | */ |
64 | - public static function VARA(mixed ...$args): string|float |
|
64 | + public static function VARA(mixed ...$args): string | float |
|
65 | 65 | { |
66 | 66 | $returnValue = ExcelError::DIV0(); |
67 | 67 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @return float|string (string if result is an error) |
109 | 109 | */ |
110 | - public static function VARP(mixed ...$args): float|string |
|
110 | + public static function VARP(mixed ...$args): float | string |
|
111 | 111 | { |
112 | 112 | // Return value |
113 | 113 | $returnValue = ExcelError::DIV0(); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * |
151 | 151 | * @return float|string (string if result is an error) |
152 | 152 | */ |
153 | - public static function VARPA(mixed ...$args): string|float |
|
153 | + public static function VARPA(mixed ...$args): string | float |
|
154 | 154 | { |
155 | 155 | $returnValue = ExcelError::DIV0(); |
156 | 156 |