@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | mixed $period, |
48 | 48 | mixed $rate, |
49 | 49 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
50 | - ): string|float { |
|
50 | + ): string | float { |
|
51 | 51 | $cost = Functions::flattenSingleValue($cost); |
52 | 52 | $purchased = Functions::flattenSingleValue($purchased); |
53 | 53 | $firstPeriod = Functions::flattenSingleValue($firstPeriod); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | mixed $period, |
134 | 134 | mixed $rate, |
135 | 135 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
136 | - ): string|float { |
|
136 | + ): string | float { |
|
137 | 137 | $cost = Functions::flattenSingleValue($cost); |
138 | 138 | $purchased = Functions::flattenSingleValue($purchased); |
139 | 139 | $firstPeriod = Functions::flattenSingleValue($firstPeriod); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @param mixed $fraction Fraction |
50 | 50 | * Or can be an array of values |
51 | 51 | */ |
52 | - public static function decimal(mixed $fractionalDollar = null, mixed $fraction = 0): array|string|float |
|
52 | + public static function decimal(mixed $fractionalDollar = null, mixed $fraction = 0): array | string | float |
|
53 | 53 | { |
54 | 54 | if (is_array($fractionalDollar) || is_array($fraction)) { |
55 | 55 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $fractionalDollar, $fraction); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param mixed $fraction Fraction |
96 | 96 | * Or can be an array of values |
97 | 97 | */ |
98 | - public static function fractional(mixed $decimalDollar = null, mixed $fraction = 0): array|string|float |
|
98 | + public static function fractional(mixed $decimalDollar = null, mixed $fraction = 0): array | string | float |
|
99 | 99 | { |
100 | 100 | if (is_array($decimalDollar) || is_array($fraction)) { |
101 | 101 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $decimalDollar, $fraction); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | mixed $redemption, |
46 | 46 | mixed $frequency, |
47 | 47 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
48 | - ): string|float { |
|
48 | + ): string | float { |
|
49 | 49 | $settlement = Functions::flattenSingleValue($settlement); |
50 | 50 | $maturity = Functions::flattenSingleValue($maturity); |
51 | 51 | $rate = Functions::flattenSingleValue($rate); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | mixed $maturity, |
48 | 48 | mixed $frequency, |
49 | 49 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
50 | - ): string|int|float { |
|
50 | + ): string | int | float { |
|
51 | 51 | $settlement = Functions::flattenSingleValue($settlement); |
52 | 52 | $maturity = Functions::flattenSingleValue($maturity); |
53 | 53 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | mixed $maturity, |
111 | 111 | mixed $frequency, |
112 | 112 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
113 | - ): string|int|float { |
|
113 | + ): string | int | float { |
|
114 | 114 | $settlement = Functions::flattenSingleValue($settlement); |
115 | 115 | $maturity = Functions::flattenSingleValue($maturity); |
116 | 116 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | mixed $maturity, |
180 | 180 | mixed $frequency, |
181 | 181 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
182 | - ): string|float { |
|
182 | + ): string | float { |
|
183 | 183 | $settlement = Functions::flattenSingleValue($settlement); |
184 | 184 | $maturity = Functions::flattenSingleValue($maturity); |
185 | 185 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | mixed $maturity, |
245 | 245 | mixed $frequency, |
246 | 246 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
247 | - ): string|float { |
|
247 | + ): string | float { |
|
248 | 248 | $settlement = Functions::flattenSingleValue($settlement); |
249 | 249 | $maturity = Functions::flattenSingleValue($maturity); |
250 | 250 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | mixed $maturity, |
298 | 298 | mixed $frequency, |
299 | 299 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
300 | - ): string|int { |
|
300 | + ): string | int { |
|
301 | 301 | $settlement = Functions::flattenSingleValue($settlement); |
302 | 302 | $maturity = Functions::flattenSingleValue($maturity); |
303 | 303 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | mixed $maturity, |
358 | 358 | mixed $frequency, |
359 | 359 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
360 | - ): string|float { |
|
360 | + ): string | float { |
|
361 | 361 | $settlement = Functions::flattenSingleValue($settlement); |
362 | 362 | $maturity = Functions::flattenSingleValue($maturity); |
363 | 363 | $frequency = Functions::flattenSingleValue($frequency); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | mixed $presentValue, |
30 | 30 | mixed $futureValue = 0, |
31 | 31 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
32 | - ): string|float { |
|
32 | + ): string | float { |
|
33 | 33 | $interestRate = Functions::flattenSingleValue($interestRate); |
34 | 34 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
35 | 35 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | mixed $presentValue, |
78 | 78 | mixed $futureValue = 0, |
79 | 79 | mixed $type = FinancialConstants::PAYMENT_END_OF_PERIOD |
80 | - ): string|float { |
|
80 | + ): string | float { |
|
81 | 81 | $interestRate = Functions::flattenSingleValue($interestRate); |
82 | 82 | $period = Functions::flattenSingleValue($period); |
83 | 83 | $numberOfPeriods = Functions::flattenSingleValue($numberOfPeriods); |
@@ -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); |