@@ -63,7 +63,7 @@ |
||
63 | 63 | * |
64 | 64 | * @return array|string An array containing a cell or range of cells, or a string on error |
65 | 65 | */ |
66 | - public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string|array |
|
66 | + public static function INDIRECT($cellAddress, mixed $a1fmt, Cell $cell): string | array |
|
67 | 67 | { |
68 | 68 | [$baseCol, $baseRow] = Coordinate::indexesFromString($cell->getCoordinate()); |
69 | 69 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * |
25 | 25 | * @return float|string Result, or a string containing an error |
26 | 26 | */ |
27 | - public static function bondEquivalentYield(mixed $settlement, mixed $maturity, mixed $discount): string|float |
|
27 | + public static function bondEquivalentYield(mixed $settlement, mixed $maturity, mixed $discount): string | float |
|
28 | 28 | { |
29 | 29 | $settlement = Functions::flattenSingleValue($settlement); |
30 | 30 | $maturity = Functions::flattenSingleValue($maturity); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return float|string Result, or a string containing an error |
71 | 71 | */ |
72 | - public static function price(mixed $settlement, mixed $maturity, mixed $discount): string|float |
|
72 | + public static function price(mixed $settlement, mixed $maturity, mixed $discount): string | float |
|
73 | 73 | { |
74 | 74 | $settlement = Functions::flattenSingleValue($settlement); |
75 | 75 | $maturity = Functions::flattenSingleValue($maturity); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * The maturity date is the date when the Treasury bill expires. |
118 | 118 | * @param float|string $price The Treasury bill's price per $100 face value |
119 | 119 | */ |
120 | - public static function yield(mixed $settlement, mixed $maturity, $price): string|float |
|
120 | + public static function yield(mixed $settlement, mixed $maturity, $price): string | float |
|
121 | 121 | { |
122 | 122 | $settlement = Functions::flattenSingleValue($settlement); |
123 | 123 | $maturity = Functions::flattenSingleValue($maturity); |
@@ -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); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @return float|string |
38 | 38 | */ |
39 | - public static function DB(mixed $cost, mixed $salvage, mixed $life, mixed $period, mixed $month = 12): string|float|int |
|
39 | + public static function DB(mixed $cost, mixed $salvage, mixed $life, mixed $period, mixed $month = 12): string | float | int |
|
40 | 40 | { |
41 | 41 | $cost = Functions::flattenSingleValue($cost); |
42 | 42 | $salvage = Functions::flattenSingleValue($salvage); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * |
151 | 151 | * @return float|string Result, or a string containing an error |
152 | 152 | */ |
153 | - public static function SLN(mixed $cost, mixed $salvage, mixed $life): string|float |
|
153 | + public static function SLN(mixed $cost, mixed $salvage, mixed $life): string | float |
|
154 | 154 | { |
155 | 155 | $cost = Functions::flattenSingleValue($cost); |
156 | 156 | $salvage = Functions::flattenSingleValue($salvage); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @return float|string Result, or a string containing an error |
185 | 185 | */ |
186 | - public static function SYD(mixed $cost, mixed $salvage, mixed $life, mixed $period): string|float |
|
186 | + public static function SYD(mixed $cost, mixed $salvage, mixed $life, mixed $period): string | float |
|
187 | 187 | { |
188 | 188 | $cost = Functions::flattenSingleValue($cost); |
189 | 189 | $salvage = Functions::flattenSingleValue($salvage); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * calculate the internal rate of return. |
30 | 30 | * @param mixed $guess A number that you guess is close to the result of IRR |
31 | 31 | */ |
32 | - public static function rate(mixed $values, mixed $guess = 0.1): string|float |
|
32 | + public static function rate(mixed $values, mixed $guess = 0.1): string | float |
|
33 | 33 | { |
34 | 34 | if (!is_array($values)) { |
35 | 35 | return ExcelError::VALUE(); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @return float|string Result, or a string containing an error |
99 | 99 | */ |
100 | - public static function modifiedRate(mixed $values, mixed $financeRate, mixed $reinvestmentRate): string|float |
|
100 | + public static function modifiedRate(mixed $values, mixed $financeRate, mixed $reinvestmentRate): string | float |
|
101 | 101 | { |
102 | 102 | if (!is_array($values)) { |
103 | 103 | return ExcelError::DIV0(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @return float |
147 | 147 | */ |
148 | - public static function presentValue(mixed $rate, ...$args): int|float |
|
148 | + public static function presentValue(mixed $rate, ...$args): int | float |
|
149 | 149 | { |
150 | 150 | $returnValue = 0; |
151 | 151 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param mixed $principal the present value |
21 | 21 | * @param float[] $schedule an array of interest rates to apply |
22 | 22 | */ |
23 | - public static function futureValue(mixed $principal, $schedule): string|float |
|
23 | + public static function futureValue(mixed $principal, $schedule): string | float |
|
24 | 24 | { |
25 | 25 | $principal = Functions::flattenSingleValue($principal); |
26 | 26 | $schedule = Functions::flattenArray($schedule); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @return float|string Result, or a string containing an error |
52 | 52 | */ |
53 | - public static function periods(mixed $rate, mixed $presentValue, mixed $futureValue): string|float |
|
53 | + public static function periods(mixed $rate, mixed $presentValue, mixed $futureValue): string | float |
|
54 | 54 | { |
55 | 55 | $rate = Functions::flattenSingleValue($rate); |
56 | 56 | $presentValue = Functions::flattenSingleValue($presentValue); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @return float|string Result, or a string containing an error |
85 | 85 | */ |
86 | - public static function interestRate($periods = 0.0, $presentValue = 0.0, $futureValue = 0.0): string|float |
|
86 | + public static function interestRate($periods = 0.0, $presentValue = 0.0, $futureValue = 0.0): string | float |
|
87 | 87 | { |
88 | 88 | $periods = Functions::flattenSingleValue($periods); |
89 | 89 | $presentValue = Functions::flattenSingleValue($presentValue); |