@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | mixed $start, |
38 | 38 | mixed $end, |
39 | 39 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
40 | - ): string|float|int { |
|
40 | + ): string | float | int { |
|
41 | 41 | $rate = Functions::flattenSingleValue($rate); |
42 | 42 | $periods = Functions::flattenSingleValue($periods); |
43 | 43 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | mixed $start, |
103 | 103 | mixed $end, |
104 | 104 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
105 | - ): string|float|int { |
|
105 | + ): string | float | int { |
|
106 | 106 | $rate = Functions::flattenSingleValue($rate); |
107 | 107 | $periods = Functions::flattenSingleValue($periods); |
108 | 108 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | mixed $payment = 0.0, |
36 | 36 | mixed $presentValue = 0.0, |
37 | 37 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
38 | - ): string|float { |
|
38 | + ): string | float { |
|
39 | 39 | $rate = Functions::flattenSingleValue($rate); |
40 | 40 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
41 | 41 | $payment = ($payment === null) ? 0.0 : Functions::flattenSingleValue($payment); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | mixed $payment = 0.0, |
75 | 75 | mixed $futureValue = 0.0, |
76 | 76 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
77 | - ): string|float { |
|
77 | + ): string | float { |
|
78 | 78 | $rate = Functions::flattenSingleValue($rate); |
79 | 79 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
80 | 80 | $payment = ($payment === null) ? 0.0 : Functions::flattenSingleValue($payment); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | float $presentValue, |
181 | 181 | float $futureValue, |
182 | 182 | int $type |
183 | - ): string|float { |
|
183 | + ): string | float { |
|
184 | 184 | if ($rate != 0.0) { |
185 | 185 | if ($presentValue == 0.0) { |
186 | 186 | return ExcelError::NAN(); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param mixed $nominalRate Nominal interest rate as a float |
21 | 21 | * @param mixed $periodsPerYear Integer number of compounding payments per year |
22 | 22 | */ |
23 | - public static function effective(mixed $nominalRate = 0, mixed $periodsPerYear = 0): string|float |
|
23 | + public static function effective(mixed $nominalRate = 0, mixed $periodsPerYear = 0): string | float |
|
24 | 24 | { |
25 | 25 | $nominalRate = Functions::flattenSingleValue($nominalRate); |
26 | 26 | $periodsPerYear = Functions::flattenSingleValue($periodsPerYear); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return float|string Result, or a string containing an error |
51 | 51 | */ |
52 | - public static function nominal(mixed $effectiveRate = 0, mixed $periodsPerYear = 0): string|float |
|
52 | + public static function nominal(mixed $effectiveRate = 0, mixed $periodsPerYear = 0): string | float |
|
53 | 53 | { |
54 | 54 | $effectiveRate = Functions::flattenSingleValue($effectiveRate); |
55 | 55 | $periodsPerYear = Functions::flattenSingleValue($periodsPerYear); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
35 | 35 | * with the same dimensions |
36 | 36 | */ |
37 | - public static function BESSELJ(mixed $x, mixed $ord): array|string|float |
|
37 | + public static function BESSELJ(mixed $x, mixed $ord): array | string | float |
|
38 | 38 | { |
39 | 39 | if (is_array($x) || is_array($ord)) { |
40 | 40 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
33 | 33 | * with the same dimensions |
34 | 34 | */ |
35 | - public static function BESSELK(mixed $x, mixed $ord): array|string|float |
|
35 | + public static function BESSELK(mixed $x, mixed $ord): array | string | float |
|
36 | 36 | { |
37 | 37 | if (is_array($x) || is_array($ord)) { |
38 | 38 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
36 | 36 | * with the same dimensions |
37 | 37 | */ |
38 | - public static function BESSELI(mixed $x, mixed $ord): array|string|float |
|
38 | + public static function BESSELI(mixed $x, mixed $ord): array | string | float |
|
39 | 39 | { |
40 | 40 | if (is_array($x) || is_array($ord)) { |
41 | 41 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord); |
@@ -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 BESSELY(mixed $x, mixed $ord): array|string|float |
|
34 | + public static function BESSELY(mixed $x, mixed $ord): array | string | float |
|
35 | 35 | { |
36 | 36 | if (is_array($x) || is_array($ord)) { |
37 | 37 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $x, $ord); |
@@ -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(mixed $probability, mixed $mean, mixed $stdDev): array|string|float |
|
117 | + public static function inverse(mixed $probability, mixed $mean, mixed $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); |
@@ -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 $mean, mixed $cumulative): array|string|float |
|
32 | + public static function distribution(mixed $value, mixed $mean, mixed $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); |