@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
27 | 27 | * with the same dimensions |
28 | 28 | */ |
29 | - public static function withBase(mixed $number, mixed $base = 10): array|string|float |
|
29 | + public static function withBase(mixed $number, mixed $base = 10): array | string | float |
|
30 | 30 | { |
31 | 31 | if (is_array($number) || is_array($base)) { |
32 | 32 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $base); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
57 | 57 | * with the same dimensions |
58 | 58 | */ |
59 | - public static function base10(mixed $number): array|string|float |
|
59 | + public static function base10(mixed $number): array | string | float |
|
60 | 60 | { |
61 | 61 | if (is_array($number)) { |
62 | 62 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
85 | 85 | * with the same dimensions |
86 | 86 | */ |
87 | - public static function natural(mixed $number): array|string|float |
|
87 | + public static function natural(mixed $number): array | string | float |
|
88 | 88 | { |
89 | 89 | if (is_array($number)) { |
90 | 90 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -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 evaluate(mixed $number, mixed $radix, mixed $minLength = null): array|string |
|
32 | + public static function evaluate(mixed $number, mixed $radix, mixed $minLength = null): array | string |
|
33 | 33 | { |
34 | 34 | if (is_array($number) || is_array($radix) || is_array($minLength)) { |
35 | 35 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $radix, $minLength); |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | * |
322 | 322 | * @return float|string Excel date/time serial value or error message |
323 | 323 | */ |
324 | - public static function COUPNCD(mixed $settlement, mixed $maturity, mixed $frequency, $basis = 0): string|float |
|
324 | + public static function COUPNCD(mixed $settlement, mixed $maturity, mixed $frequency, $basis = 0): string | float |
|
325 | 325 | { |
326 | 326 | return Coupons::COUPNCD($settlement, $maturity, $frequency, $basis); |
327 | 327 | } |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | * |
395 | 395 | * @return float|string Excel date/time serial value or error message |
396 | 396 | */ |
397 | - public static function COUPPCD(mixed $settlement, mixed $maturity, mixed $frequency, $basis = 0): string|float |
|
397 | + public static function COUPPCD(mixed $settlement, mixed $maturity, mixed $frequency, $basis = 0): string | float |
|
398 | 398 | { |
399 | 399 | return Coupons::COUPPCD($settlement, $maturity, $frequency, $basis); |
400 | 400 | } |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | * @param array|float $fractional_dollar Fractional Dollar |
573 | 573 | * @param array|int $fraction Fraction |
574 | 574 | */ |
575 | - public static function DOLLARDE($fractional_dollar = null, $fraction = 0): string|float|array |
|
575 | + public static function DOLLARDE($fractional_dollar = null, $fraction = 0): string | float | array |
|
576 | 576 | { |
577 | 577 | return Dollar::decimal($fractional_dollar, $fraction); |
578 | 578 | } |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * @param array|float $decimal_dollar Decimal Dollar |
595 | 595 | * @param array|int $fraction Fraction |
596 | 596 | */ |
597 | - public static function DOLLARFR($decimal_dollar = null, $fraction = 0): string|float|array |
|
597 | + public static function DOLLARFR($decimal_dollar = null, $fraction = 0): string | float | array |
|
598 | 598 | { |
599 | 599 | return Dollar::fractional($decimal_dollar, $fraction); |
600 | 600 | } |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | * @param float $nominalRate Nominal interest rate |
616 | 616 | * @param int $periodsPerYear Number of compounding payments per year |
617 | 617 | */ |
618 | - public static function EFFECT($nominalRate = 0, $periodsPerYear = 0): string|float |
|
618 | + public static function EFFECT($nominalRate = 0, $periodsPerYear = 0): string | float |
|
619 | 619 | { |
620 | 620 | return Financial\InterestRate::effective($nominalRate, $periodsPerYear); |
621 | 621 | } |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * 0 or omitted At the end of the period. |
644 | 644 | * 1 At the beginning of the period. |
645 | 645 | */ |
646 | - public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0): string|float |
|
646 | + public static function FV($rate = 0, $nper = 0, $pmt = 0, $pv = 0, $type = 0): string | float |
|
647 | 647 | { |
648 | 648 | return Financial\CashFlow\Constant\Periodic::futureValue($rate, $nper, $pmt, $pv, $type); |
649 | 649 | } |
@@ -724,7 +724,7 @@ discard block |
||
724 | 724 | * @param float $fv Future Value |
725 | 725 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
726 | 726 | */ |
727 | - public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0): string|float |
|
727 | + public static function IPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0): string | float |
|
728 | 728 | { |
729 | 729 | return Financial\CashFlow\Constant\Periodic\Interest::payment($rate, $per, $nper, $pv, $fv, $type); |
730 | 730 | } |
@@ -830,7 +830,7 @@ discard block |
||
830 | 830 | * |
831 | 831 | * @return float|string Result, or a string containing an error |
832 | 832 | */ |
833 | - public static function NOMINAL($effectiveRate = 0, $periodsPerYear = 0): string|float |
|
833 | + public static function NOMINAL($effectiveRate = 0, $periodsPerYear = 0): string | float |
|
834 | 834 | { |
835 | 835 | return InterestRate::nominal($effectiveRate, $periodsPerYear); |
836 | 836 | } |
@@ -936,7 +936,7 @@ discard block |
||
936 | 936 | * |
937 | 937 | * @return float|string Result, or a string containing an error |
938 | 938 | */ |
939 | - public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0): string|float |
|
939 | + public static function PPMT($rate, $per, $nper, $pv, $fv = 0, $type = 0): string | float |
|
940 | 940 | { |
941 | 941 | return Financial\CashFlow\Constant\Periodic\Payments::interestPayment($rate, $per, $nper, $pv, $fv, $type); |
942 | 942 | } |
@@ -971,7 +971,7 @@ discard block |
||
971 | 971 | * |
972 | 972 | * @return float|string Result, or a string containing an error |
973 | 973 | */ |
974 | - public static function PRICE(mixed $settlement, mixed $maturity, $rate, $yield, $redemption, $frequency, $basis = 0): string|float |
|
974 | + public static function PRICE(mixed $settlement, mixed $maturity, $rate, $yield, $redemption, $frequency, $basis = 0): string | float |
|
975 | 975 | { |
976 | 976 | return Securities\Price::price($settlement, $maturity, $rate, $yield, $redemption, $frequency, $basis); |
977 | 977 | } |
@@ -1054,7 +1054,7 @@ discard block |
||
1054 | 1054 | * |
1055 | 1055 | * @return float|string Result, or a string containing an error |
1056 | 1056 | */ |
1057 | - public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0): string|float |
|
1057 | + public static function PV($rate = 0, $nper = 0, $pmt = 0, $fv = 0, $type = 0): string | float |
|
1058 | 1058 | { |
1059 | 1059 | return Financial\CashFlow\Constant\Periodic::presentValue($rate, $nper, $pmt, $fv, $type); |
1060 | 1060 | } |
@@ -1206,7 +1206,7 @@ discard block |
||
1206 | 1206 | * |
1207 | 1207 | * @return float|string Result, or a string containing an error |
1208 | 1208 | */ |
1209 | - public static function TBILLEQ(mixed $settlement, mixed $maturity, mixed $discount): string|float |
|
1209 | + public static function TBILLEQ(mixed $settlement, mixed $maturity, mixed $discount): string | float |
|
1210 | 1210 | { |
1211 | 1211 | return TreasuryBill::bondEquivalentYield($settlement, $maturity, $discount); |
1212 | 1212 | } |
@@ -1229,7 +1229,7 @@ discard block |
||
1229 | 1229 | * |
1230 | 1230 | * @return float|string Result, or a string containing an error |
1231 | 1231 | */ |
1232 | - public static function TBILLPRICE(mixed $settlement, mixed $maturity, mixed $discount): string|float |
|
1232 | + public static function TBILLPRICE(mixed $settlement, mixed $maturity, mixed $discount): string | float |
|
1233 | 1233 | { |
1234 | 1234 | return TreasuryBill::price($settlement, $maturity, $discount); |
1235 | 1235 | } |
@@ -1250,7 +1250,7 @@ discard block |
||
1250 | 1250 | * The maturity date is the date when the Treasury bill expires. |
1251 | 1251 | * @param mixed $price The Treasury bill's price per $100 face value |
1252 | 1252 | */ |
1253 | - public static function TBILLYIELD(mixed $settlement, mixed $maturity, mixed $price): string|float |
|
1253 | + public static function TBILLYIELD(mixed $settlement, mixed $maturity, mixed $price): string | float |
|
1254 | 1254 | { |
1255 | 1255 | return TreasuryBill::yield($settlement, $maturity, $price); |
1256 | 1256 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param float $alpha Parameter to the distribution |
124 | 124 | * @param float $beta Parameter to the distribution |
125 | 125 | */ |
126 | - public static function BETADIST($value, $alpha, $beta, mixed $rMin = 0, mixed $rMax = 1): string|float|array |
|
126 | + public static function BETADIST($value, $alpha, $beta, mixed $rMin = 0, mixed $rMax = 1): string | float | array |
|
127 | 127 | { |
128 | 128 | return Statistical\Distributions\Beta::distribution($value, $alpha, $beta, $rMin, $rMax); |
129 | 129 | } |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | * |
535 | 535 | * @return array|float|string The result, or a string containing an error |
536 | 536 | */ |
537 | - public static function GAMMAFunction($value): string|float|array |
|
537 | + public static function GAMMAFunction($value): string | float | array |
|
538 | 538 | { |
539 | 539 | return Statistical\Distributions\Gamma::gamma($value); |
540 | 540 | } |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | * |
592 | 592 | * @param float $value |
593 | 593 | */ |
594 | - public static function GAMMALN($value): string|float|array |
|
594 | + public static function GAMMALN($value): string | float | array |
|
595 | 595 | { |
596 | 596 | return Statistical\Distributions\Gamma::ln($value); |
597 | 597 | } |
@@ -787,7 +787,7 @@ discard block |
||
787 | 787 | * |
788 | 788 | * @return array|string The result, or a string containing an error |
789 | 789 | */ |
790 | - public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
790 | + public static function LINEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
791 | 791 | { |
792 | 792 | return Trends::LINEST($yValues, $xValues, $const, $stats); |
793 | 793 | } |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | * |
810 | 810 | * @return array|string The result, or a string containing an error |
811 | 811 | */ |
812 | - public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string|array |
|
812 | + public static function LOGEST(array $yValues, $xValues = null, $const = true, $stats = false): string | array |
|
813 | 813 | { |
814 | 814 | return Trends::LOGEST($yValues, $xValues, $const, $stats); |
815 | 815 | } |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | * accuracy if I can get my head round the mathematics |
834 | 834 | * (as described at) http://home.online.no/~pjacklam/notes/invnorm/ |
835 | 835 | */ |
836 | - public static function LOGINV($probability, $mean, $stdDev): string|float|array |
|
836 | + public static function LOGINV($probability, $mean, $stdDev): string | float | array |
|
837 | 837 | { |
838 | 838 | return Statistical\Distributions\LogNormal::inverse($probability, $mean, $stdDev); |
839 | 839 | } |
@@ -1206,7 +1206,7 @@ discard block |
||
1206 | 1206 | * |
1207 | 1207 | * @return float|string (string if result is an error) |
1208 | 1208 | */ |
1209 | - public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string|float |
|
1209 | + public static function PERCENTRANK(mixed $valueSet, mixed $value, mixed $significance = 3): string | float |
|
1210 | 1210 | { |
1211 | 1211 | return Statistical\Percentiles::PERCENTRANK($valueSet, $value, $significance); |
1212 | 1212 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param mixed $value Value to check |
53 | 53 | */ |
54 | - public static function type(mixed $value = ''): array|int|string |
|
54 | + public static function type(mixed $value = ''): array | int | string |
|
55 | 55 | { |
56 | 56 | if (is_array($value)) { |
57 | 57 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -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 isBlank(mixed $value = null): array|bool |
|
27 | + public static function isBlank(mixed $value = null): array | bool |
|
28 | 28 | { |
29 | 29 | if (is_array($value)) { |
30 | 30 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
74 | 74 | * with the same dimensions |
75 | 75 | */ |
76 | - public static function isEven(mixed $value = null): array|string|bool |
|
76 | + public static function isEven(mixed $value = null): array | string | bool |
|
77 | 77 | { |
78 | 78 | if (is_array($value)) { |
79 | 79 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
99 | 99 | * with the same dimensions |
100 | 100 | */ |
101 | - public static function isOdd(mixed $value = null): array|string|bool |
|
101 | + public static function isOdd(mixed $value = null): array | string | bool |
|
102 | 102 | { |
103 | 103 | if (is_array($value)) { |
104 | 104 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
124 | 124 | * with the same dimensions |
125 | 125 | */ |
126 | - public static function isNumber(mixed $value = null): array|bool |
|
126 | + public static function isNumber(mixed $value = null): array | bool |
|
127 | 127 | { |
128 | 128 | if (is_array($value)) { |
129 | 129 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
147 | 147 | * with the same dimensions |
148 | 148 | */ |
149 | - public static function isLogical(mixed $value = null): array|bool |
|
149 | + public static function isLogical(mixed $value = null): array | bool |
|
150 | 150 | { |
151 | 151 | if (is_array($value)) { |
152 | 152 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
166 | 166 | * with the same dimensions |
167 | 167 | */ |
168 | - public static function isText(mixed $value = null): array|bool |
|
168 | + public static function isText(mixed $value = null): array | bool |
|
169 | 169 | { |
170 | 170 | if (is_array($value)) { |
171 | 171 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
185 | 185 | * with the same dimensions |
186 | 186 | */ |
187 | - public static function isNonText(mixed $value = null): array|bool |
|
187 | + public static function isNonText(mixed $value = null): array | bool |
|
188 | 188 | { |
189 | 189 | if (is_array($value)) { |
190 | 190 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
19 | 19 | * with the same dimensions |
20 | 20 | */ |
21 | - public static function isErr(mixed $value = ''): array|bool |
|
21 | + public static function isErr(mixed $value = ''): array | bool |
|
22 | 22 | { |
23 | 23 | if (is_array($value)) { |
24 | 24 | 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 isError(mixed $value = ''): array|bool |
|
40 | + public static function isError(mixed $value = ''): array | bool |
|
41 | 41 | { |
42 | 42 | if (is_array($value)) { |
43 | 43 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
61 | 61 | * with the same dimensions |
62 | 62 | */ |
63 | - public static function isNa(mixed $value = ''): array|bool |
|
63 | + public static function isNa(mixed $value = ''): array | bool |
|
64 | 64 | { |
65 | 65 | if (is_array($value)) { |
66 | 66 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * If an array of values 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 character(mixed $character): array|string |
|
23 | + public static function character(mixed $character): array | string |
|
24 | 24 | { |
25 | 25 | if (is_array($character)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $character); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * If an array of values is passed as the argument, then the returned result will also be an array |
47 | 47 | * with the same dimensions |
48 | 48 | */ |
49 | - public static function code(mixed $characters): array|string|int |
|
49 | + public static function code(mixed $characters): array | string | int |
|
50 | 50 | { |
51 | 51 | if (is_array($characters)) { |
52 | 52 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $characters); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * If an array of values is passed as the argument, then the returned result will also be an array |
40 | 40 | * with the same dimensions |
41 | 41 | */ |
42 | - public static function spaces(mixed $stringValue = ''): array|string |
|
42 | + public static function spaces(mixed $stringValue = ''): array | string |
|
43 | 43 | { |
44 | 44 | if (is_array($stringValue)) { |
45 | 45 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue); |