@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Avoid Scrutinizer problems concerning complexity. |
130 | 130 | */ |
131 | - private static function argumentsOkPrecise(float $number, float $significance): string|float |
|
131 | + private static function argumentsOkPrecise(float $number, float $significance): string | float |
|
132 | 132 | { |
133 | 133 | if ($significance == 0.0) { |
134 | 134 | return ExcelError::DIV0(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @return float|string Rounded Number, or a string containing an error |
147 | 147 | */ |
148 | - private static function argsOk(float $number, float $significance, int $mode): string|float |
|
148 | + private static function argsOk(float $number, float $significance, int $mode): string | float |
|
149 | 149 | { |
150 | 150 | if (!$significance) { |
151 | 151 | return ExcelError::DIV0(); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * Avoid Scrutinizer problems concerning complexity. |
173 | 173 | */ |
174 | - private static function argumentsOk(float $number, float $significance): string|float |
|
174 | + private static function argumentsOk(float $number, float $significance): string | float |
|
175 | 175 | { |
176 | 176 | if ($significance == 0.0) { |
177 | 177 | return ExcelError::DIV0(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
28 | 28 | * with the same dimensions |
29 | 29 | */ |
30 | - public static function fact($factVal): array|string|float|int |
|
30 | + public static function fact($factVal): array | string | float | int |
|
31 | 31 | { |
32 | 32 | if (is_array($factVal)) { |
33 | 33 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
70 | 70 | * with the same dimensions |
71 | 71 | */ |
72 | - public static function factDouble($factVal): array|string|float|int |
|
72 | + public static function factDouble($factVal): array | string | float | int |
|
73 | 73 | { |
74 | 74 | if (is_array($factVal)) { |
75 | 75 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $factVal); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @return float|string The result, or a string containing an error |
103 | 103 | */ |
104 | - public static function multinomial(...$args): string|int|float |
|
104 | + public static function multinomial(...$args): string | int | float |
|
105 | 105 | { |
106 | 106 | $summer = 0; |
107 | 107 | $divisor = 1; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @return int|string Result, or a string containing an error |
26 | 26 | */ |
27 | - public static function daysPerYear($year, $basis = 0): string|int |
|
27 | + public static function daysPerYear($year, $basis = 0): string | int |
|
28 | 28 | { |
29 | 29 | if (!is_numeric($basis)) { |
30 | 30 | return ExcelError::NAN(); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | return ''; |
183 | 183 | } |
184 | 184 | |
185 | - private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float|string |
|
185 | + private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float | string |
|
186 | 186 | { |
187 | 187 | $f = self::xnpvOrdered($x1, $values, $dates, false); |
188 | 188 | if ($f < 0.0) { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | return $rslt; |
212 | 212 | } |
213 | 213 | |
214 | - private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string|float |
|
214 | + private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string | float |
|
215 | 215 | { |
216 | 216 | $rslt = ExcelError::NAN(); |
217 | 217 | for ($i = 0; $i < self::FINANCIAL_MAX_ITERATIONS; ++$i) { |
@@ -26,7 +26,7 @@ |
||
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 execute($value, $mean, $stdDev): array|string|float |
|
29 | + public static function execute($value, $mean, $stdDev): array | string | float |
|
30 | 30 | { |
31 | 31 | if (is_array($value) || is_array($mean) || is_array($stdDev)) { |
32 | 32 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $mean, $stdDev); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | * @param mixed[] $range Data values |
84 | 84 | * @param string $condition the criteria that defines which cells will be counted |
85 | 85 | */ |
86 | - public static function COUNTIF($range, $condition): string|int |
|
86 | + public static function COUNTIF($range, $condition): string | int |
|
87 | 87 | { |
88 | 88 | // Filter out any empty values that shouldn't be included in a COUNT |
89 | 89 | $range = array_filter( |
@@ -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; |
@@ -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) { |