@@ -83,7 +83,7 @@ |
||
83 | 83 | * @param mixed[] $range Data values |
84 | 84 | * @param string $condition the criteria that defines which cells will be counted |
85 | 85 | */ |
86 | - public static function COUNTIF($range, $condition): string|int |
|
86 | + public static function COUNTIF($range, $condition): string | int |
|
87 | 87 | { |
88 | 88 | // Filter out any empty values that shouldn't be included in a COUNT |
89 | 89 | $range = array_filter( |
@@ -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(...$args): string|float |
|
23 | + public static function averageDeviations(...$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(...$args): string|int|float |
|
72 | + public static function average(...$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(...$args): string|int|float |
|
111 | + public static function averageA(...$args): string | int | float |
|
112 | 112 | { |
113 | 113 | $returnValue = null; |
114 | 114 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
29 | 29 | * with the same dimensions |
30 | 30 | */ |
31 | - public static function distribution($value, $lambda, $cumulative): array|string|float |
|
31 | + public static function distribution($value, $lambda, $cumulative): array | string | float |
|
32 | 32 | { |
33 | 33 | if (is_array($value) || is_array($lambda) || is_array($cumulative)) { |
34 | 34 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $lambda, $cumulative); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
84 | 84 | * with the same dimensions |
85 | 85 | */ |
86 | - public static function range($trials, $probability, $successes, $limit = null): array|string|float|int |
|
86 | + public static function range($trials, $probability, $successes, $limit = null): array | string | float | int |
|
87 | 87 | { |
88 | 88 | if (is_array($trials) || is_array($probability) || is_array($successes) || is_array($limit)) { |
89 | 89 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $successes, $limit); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * TODO Add support for the cumulative flag not present for NEGBINOMDIST, but introduced for NEGBINOM.DIST |
142 | 142 | * The cumulative default should be false to reflect the behaviour of NEGBINOMDIST |
143 | 143 | */ |
144 | - public static function negative($failures, $successes, $probability): array|string|float |
|
144 | + public static function negative($failures, $successes, $probability): array | string | float |
|
145 | 145 | { |
146 | 146 | if (is_array($failures) || is_array($successes) || is_array($probability)) { |
147 | 147 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $failures, $successes, $probability); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
188 | 188 | * with the same dimensions |
189 | 189 | */ |
190 | - public static function inverse($trials, $probability, $alpha): array|string|int |
|
190 | + public static function inverse($trials, $probability, $alpha): array | string | int |
|
191 | 191 | { |
192 | 192 | if (is_array($trials) || is_array($probability) || is_array($alpha)) { |
193 | 193 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $trials, $probability, $alpha); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | return $successes; |
220 | 220 | } |
221 | 221 | |
222 | - private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float|int |
|
222 | + private static function calculateCumulativeBinomial(int $value, int $trials, float $probability): float | int |
|
223 | 223 | { |
224 | 224 | $summer = 0; |
225 | 225 | for ($i = 0; $i <= $value; ++$i) { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
28 | 28 | * with the same dimensions |
29 | 29 | */ |
30 | - public static function distributionRightTail($value, $degrees): array|string|int|float |
|
30 | + public static function distributionRightTail($value, $degrees): array | string | int | float |
|
31 | 31 | { |
32 | 32 | if (is_array($value) || is_array($degrees)) { |
33 | 33 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
71 | 71 | * with the same dimensions |
72 | 72 | */ |
73 | - public static function distributionLeftTail($value, $degrees, $cumulative): array|string|int|float |
|
73 | + public static function distributionLeftTail($value, $degrees, $cumulative): array | string | int | float |
|
74 | 74 | { |
75 | 75 | if (is_array($value) || is_array($degrees) || is_array($cumulative)) { |
76 | 76 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $degrees, $cumulative); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
161 | 161 | * with the same dimensions |
162 | 162 | */ |
163 | - public static function inverseLeftTail($probability, $degrees): array|string|float |
|
163 | + public static function inverseLeftTail($probability, $degrees): array | string | float |
|
164 | 164 | { |
165 | 165 | if (is_array($probability) || is_array($degrees)) { |
166 | 166 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $probability, $degrees); |
@@ -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($value, $mean, $stdDev, $cumulative): array|string|float |
|
36 | + public static function distribution($value, $mean, $stdDev, $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($probability, $mean, $stdDev): array|string|float |
|
78 | + public static function inverse($probability, $mean, $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); |
@@ -94,7 +94,7 @@ |
||
94 | 94 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
95 | 95 | * with the same dimensions |
96 | 96 | */ |
97 | - public static function gauss($value): array|string|float |
|
97 | + public static function gauss($value): array | string | float |
|
98 | 98 | { |
99 | 99 | if (is_array($value)) { |
100 | 100 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -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($value, $mean, $cumulative): array|string|float |
|
32 | + public static function distribution($value, $mean, $cumulative): array | string | float |
|
33 | 33 | { |
34 | 34 | if (is_array($value) || is_array($mean) || is_array($cumulative)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $cumulative); |
@@ -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($value, $u, $v, $cumulative): array|string|float |
|
34 | + public static function distribution($value, $u, $v, $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); |