@@ -30,7 +30,7 @@ |
||
30 | 30 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
31 | 31 | * with the same dimensions |
32 | 32 | */ |
33 | - public static function distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber): array|string|float |
|
33 | + public static function distribution($sampleSuccesses, $sampleNumber, $populationSuccesses, $populationNumber): array | string | float |
|
34 | 34 | { |
35 | 35 | if ( |
36 | 36 | is_array($sampleSuccesses) || is_array($sampleNumber) || |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** @return float|string */ |
21 | - public function execute(float $probability): string|int|float |
|
21 | + public function execute(float $probability): string | int | float |
|
22 | 22 | { |
23 | 23 | $xLo = 100; |
24 | 24 | $xHi = 0; |
@@ -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, $alpha, $beta, $cumulative): array|string|float |
|
32 | + public static function distribution($value, $alpha, $beta, $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); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
25 | 25 | * with the same dimensions |
26 | 26 | */ |
27 | - public static function distribution($value): array|string|float |
|
27 | + public static function distribution($value): array | string | float |
|
28 | 28 | { |
29 | 29 | if (is_array($value)) { |
30 | 30 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
58 | 58 | * with the same dimensions |
59 | 59 | */ |
60 | - public static function inverse($probability): array|string|float |
|
60 | + public static function inverse($probability): array | string | float |
|
61 | 61 | { |
62 | 62 | if (is_array($probability)) { |
63 | 63 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $probability); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * @param mixed $rMin |
126 | 126 | * @param mixed $rMax |
127 | 127 | */ |
128 | - public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string|float|array |
|
128 | + public static function BETADIST($value, $alpha, $beta, $rMin = 0, $rMax = 1): string | float | array |
|
129 | 129 | { |
130 | 130 | return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax); |
131 | 131 | } |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | * |
538 | 538 | * @return array|float|string The result, or a string containing an error |
539 | 539 | */ |
540 | - public static function GAMMAFunction($value): string|float|array |
|
540 | + public static function GAMMAFunction($value): string | float | array |
|
541 | 541 | { |
542 | 542 | return Statistical\Distributions\Gamma::gamma($value); |
543 | 543 | } |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * |
595 | 595 | * @param float $value |
596 | 596 | */ |
597 | - public static function GAMMALN($value): string|float|array |
|
597 | + public static function GAMMALN($value): string | float | array |
|
598 | 598 | { |
599 | 599 | return Statistical\Distributions\Gamma::ln($value); |
600 | 600 | } |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | * |
791 | 791 | * @return array|string The result, or a string containing an error |
792 | 792 | */ |
793 | - public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
793 | + public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
794 | 794 | { |
795 | 795 | return Trends::LINEST($yValues, $xValues, $const, $stats); |
796 | 796 | } |
@@ -812,7 +812,7 @@ discard block |
||
812 | 812 | * |
813 | 813 | * @return array|string The result, or a string containing an error |
814 | 814 | */ |
815 | - public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
815 | + public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
816 | 816 | { |
817 | 817 | return Trends::LOGEST($yValues, $xValues, $const, $stats); |
818 | 818 | } |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | * accuracy if I can get my head round the mathematics |
837 | 837 | * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ |
838 | 838 | */ |
839 | - public static function LOGINV($probability, $mean, $stdDev): string|float|array |
|
839 | + public static function LOGINV($probability, $mean, $stdDev): string | float | array |
|
840 | 840 | { |
841 | 841 | return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev); |
842 | 842 | } |
@@ -1219,7 +1219,7 @@ discard block |
||
1219 | 1219 | * |
1220 | 1220 | * @return float|string (string if result is an error) |
1221 | 1221 | */ |
1222 | - public static function PERCENTRANK($valueSet, $value, $significance = 3): string|float |
|
1222 | + public static function PERCENTRANK($valueSet, $value, $significance = 3): string | float |
|
1223 | 1223 | { |
1224 | 1224 | return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance); |
1225 | 1225 | } |
@@ -116,7 +116,7 @@ |
||
116 | 116 | * If an array of values is passed as an argument, then the returned result will also be an array |
117 | 117 | * with the same dimensions |
118 | 118 | */ |
119 | - public static function NOT($logical = false): array|bool|string |
|
119 | + public static function NOT($logical = false): array | bool | string |
|
120 | 120 | { |
121 | 121 | if (is_array($logical)) { |
122 | 122 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @param mixed $stringValue Value to check |
52 | 52 | */ |
53 | - public static function TRIMSPACES($stringValue = ''): string|array |
|
53 | + public static function TRIMSPACES($stringValue = ''): string | array |
|
54 | 54 | { |
55 | 55 | return TextData\Trim::spaces($stringValue); |
56 | 56 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @return array|int|string A string if arguments are invalid |
68 | 68 | */ |
69 | - public static function ASCIICODE($characters): string|int|array |
|
69 | + public static function ASCIICODE($characters): string | int | array |
|
70 | 70 | { |
71 | 71 | return TextData\CharacterConvert::code($characters); |
72 | 72 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * @param array|string $value Value |
172 | 172 | * @param array|int $chars Number of characters |
173 | 173 | */ |
174 | - public static function LEFT($value = '', $chars = 1): string|array |
|
174 | + public static function LEFT($value = '', $chars = 1): string | array |
|
175 | 175 | { |
176 | 176 | return TextData\Extract::left($value, $chars); |
177 | 177 | } |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | * @param array|int $start Start character |
188 | 188 | * @param array|int $chars Number of characters |
189 | 189 | */ |
190 | - public static function MID($value = '', $start = 1, $chars = null): string|array |
|
190 | + public static function MID($value = '', $start = 1, $chars = null): string | array |
|
191 | 191 | { |
192 | 192 | return TextData\Extract::mid($value, $start, $chars); |
193 | 193 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * @param array|string $value Value |
203 | 203 | * @param array|int $chars Number of characters |
204 | 204 | */ |
205 | - public static function RIGHT($value = '', $chars = 1): string|array |
|
205 | + public static function RIGHT($value = '', $chars = 1): string | array |
|
206 | 206 | { |
207 | 207 | return TextData\Extract::right($value, $chars); |
208 | 208 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @param string $value Value |
218 | 218 | */ |
219 | - public static function STRINGLENGTH($value = ''): int|array |
|
219 | + public static function STRINGLENGTH($value = ''): int | array |
|
220 | 220 | { |
221 | 221 | return TextData\Text::length($value); |
222 | 222 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * @param array|string $mixedCaseString |
234 | 234 | */ |
235 | - public static function LOWERCASE($mixedCaseString): string|array |
|
235 | + public static function LOWERCASE($mixedCaseString): string | array |
|
236 | 236 | { |
237 | 237 | return TextData\CaseConvert::lower($mixedCaseString); |
238 | 238 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param string $mixedCaseString |
250 | 250 | */ |
251 | - public static function UPPERCASE($mixedCaseString): string|array |
|
251 | + public static function UPPERCASE($mixedCaseString): string | array |
|
252 | 252 | { |
253 | 253 | return TextData\CaseConvert::upper($mixedCaseString); |
254 | 254 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * |
265 | 265 | * @param array|string $mixedCaseString |
266 | 266 | */ |
267 | - public static function PROPERCASE($mixedCaseString): string|array |
|
267 | + public static function PROPERCASE($mixedCaseString): string | array |
|
268 | 268 | { |
269 | 269 | return TextData\CaseConvert::proper($mixedCaseString); |
270 | 270 | } |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | * |
317 | 317 | * @param mixed $testValue Value to check |
318 | 318 | */ |
319 | - public static function RETURNSTRING($testValue = ''): string|array |
|
319 | + public static function RETURNSTRING($testValue = ''): string | array |
|
320 | 320 | { |
321 | 321 | return TextData\Text::test($testValue); |
322 | 322 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * @param mixed $value1 |
385 | 385 | * @param mixed $value2 |
386 | 386 | */ |
387 | - public static function EXACT($value1, $value2): bool|array |
|
387 | + public static function EXACT($value1, $value2): bool | array |
|
388 | 388 | { |
389 | 389 | return TextData\Text::exact($value1, $value2); |
390 | 390 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * the column label in which you specify a condition for the |
31 | 31 | * column. |
32 | 32 | */ |
33 | - public static function evaluate($database, $field, $criteria): string|float |
|
33 | + public static function evaluate($database, $field, $criteria): string | float |
|
34 | 34 | { |
35 | 35 | $field = self::fieldExtract($database, $field); |
36 | 36 | if ($field === null) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @return float|string |
34 | 34 | */ |
35 | - public static function evaluate($database, $field, $criteria): string|int|float |
|
35 | + public static function evaluate($database, $field, $criteria): string | int | float |
|
36 | 36 | { |
37 | 37 | $field = self::fieldExtract($database, $field); |
38 | 38 | if ($field === null) { |