@@ -20,7 +20,7 @@ |
||
20 | 20 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
21 | 21 | * with the same dimensions |
22 | 22 | */ |
23 | - public static function evaluate($number): array|string|float |
|
23 | + public static function evaluate($number): array | string | float |
|
24 | 24 | { |
25 | 25 | if (is_array($number)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * If an array of values is passed for the $startDate or $endDate arguments, then the returned result |
34 | 34 | * will also be an array with matching dimensions |
35 | 35 | */ |
36 | - public static function count($startDate, $endDate, ...$dateArgs): array|string|int |
|
36 | + public static function count($startDate, $endDate, ...$dateArgs): array | string | int |
|
37 | 37 | { |
38 | 38 | if (is_array($startDate) || is_array($endDate)) { |
39 | 39 | return self::evaluateArrayArgumentsSubset( |
@@ -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($startDate = 0, $endDate = 0, $method = false): array|string|int |
|
47 | + public static function between($startDate = 0, $endDate = 0, $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); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * |
75 | 75 | * @return float|string (string if result is an error) |
76 | 76 | */ |
77 | - public static function PERCENTRANK($valueSet, $value, $significance = 3): string|float |
|
77 | + public static function PERCENTRANK($valueSet, $value, $significance = 3): string | float |
|
78 | 78 | { |
79 | 79 | $valueSet = Functions::flattenArray($valueSet); |
80 | 80 | $value = Functions::flattenSingleValue($value); |
@@ -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, $const = true, $stats = false): string|array |
|
215 | + public static function LINEST(array $yValues, $xValues = null, $const = true, $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, $const = true, $stats = false): string|array |
|
276 | + public static function LOGEST(array $yValues, $xValues = null, $const = true, $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); |
@@ -160,7 +160,7 @@ |
||
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); |
@@ -114,7 +114,7 @@ |
||
114 | 114 | * accuracy if I can get my head round the mathematics |
115 | 115 | * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ |
116 | 116 | */ |
117 | - public static function inverse($probability, $mean, $stdDev): array|string|float |
|
117 | + public static function inverse($probability, $mean, $stdDev): array | string | float |
|
118 | 118 | { |
119 | 119 | if (is_array($probability) || is_array($mean) || is_array($stdDev)) { |
120 | 120 | 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($value): array|string|float |
|
25 | + public static function gamma($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($value): array|string|float |
|
133 | + public static function ln($value): array | string | float |
|
134 | 134 | { |
135 | 135 | if (is_array($value)) { |
136 | 136 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
38 | 38 | * with the same dimensions |
39 | 39 | */ |
40 | - public static function distribution($value, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array|string|float |
|
40 | + public static function distribution($value, $alpha, $beta, $rMin = 0.0, $rMax = 1.0): array | string | float |
|
41 | 41 | { |
42 | 42 | if (is_array($value) || is_array($alpha) || is_array($beta) || is_array($rMin) || is_array($rMax)) { |
43 | 43 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $alpha, $beta, $rMin, $rMax); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return self::calculateInverse($probability, $alpha, $beta, $rMin, $rMax); |
123 | 123 | } |
124 | 124 | |
125 | - private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string|float |
|
125 | + private static function calculateInverse(float $probability, float $alpha, float $beta, float $rMin, float $rMax): string | float |
|
126 | 126 | { |
127 | 127 | $a = 0; |
128 | 128 | $b = 2; |