@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | mixed $price, |
39 | 39 | mixed $redemption, |
40 | 40 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
41 | - ): float|string { |
|
41 | + ): float | string { |
|
42 | 42 | $settlement = Functions::flattenSingleValue($settlement); |
43 | 43 | $maturity = Functions::flattenSingleValue($maturity); |
44 | 44 | $price = Functions::flattenSingleValue($price); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | mixed $investment, |
100 | 100 | mixed $redemption, |
101 | 101 | mixed $basis = FinancialConstants::BASIS_DAYS_PER_YEAR_NASD |
102 | - ): float|string { |
|
102 | + ): float | string { |
|
103 | 103 | $settlement = Functions::flattenSingleValue($settlement); |
104 | 104 | $maturity = Functions::flattenSingleValue($maturity); |
105 | 105 | $investment = Functions::flattenSingleValue($investment); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @return array|string If an array of values is passed for either of the arguments, then the returned result |
77 | 77 | * will also be an array with matching dimensions |
78 | 78 | */ |
79 | - public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array|string |
|
79 | + public static function FIXEDFORMAT(mixed $value, mixed $decimals = 2, mixed $noCommas = false): array | string |
|
80 | 80 | { |
81 | 81 | if (is_array($value) || is_array($decimals) || is_array($noCommas)) { |
82 | 82 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimals, $noCommas); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * @return array|string If an array of values is passed for either of the arguments, then the returned result |
117 | 117 | * will also be an array with matching dimensions |
118 | 118 | */ |
119 | - public static function TEXTFORMAT(mixed $value, mixed $format): array|string |
|
119 | + public static function TEXTFORMAT(mixed $value, mixed $format): array | string |
|
120 | 120 | { |
121 | 121 | if (is_array($value) || is_array($format)) { |
122 | 122 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format); |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * @return array|string If an array of values is passed for either of the arguments, then the returned result |
224 | 224 | * will also be an array with matching dimensions |
225 | 225 | */ |
226 | - public static function valueToText(mixed $value, mixed $format = false): array|string |
|
226 | + public static function valueToText(mixed $value, mixed $format = false): array | string |
|
227 | 227 | { |
228 | 228 | if (is_array($value) || is_array($format)) { |
229 | 229 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $format); |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * @param mixed $groupSeparator A string with the group/thousands separator to use, defaults to locale defined value |
265 | 265 | * Or can be an array of values |
266 | 266 | */ |
267 | - public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array|string|float |
|
267 | + public static function NUMBERVALUE(mixed $value = '', mixed $decimalSeparator = null, mixed $groupSeparator = null): array | string | float |
|
268 | 268 | { |
269 | 269 | if (is_array($value) || is_array($decimalSeparator) || is_array($groupSeparator)) { |
270 | 270 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $decimalSeparator, $groupSeparator); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * @return array|string If an array of values is passed as the argument, then the returned result will also be an array |
38 | 38 | * with the same dimensions |
39 | 39 | */ |
40 | - public static function spaces(mixed $stringValue = ''): array|string |
|
40 | + public static function spaces(mixed $stringValue = ''): array | string |
|
41 | 41 | { |
42 | 42 | if (is_array($stringValue)) { |
43 | 43 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $stringValue); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @return array|string 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 lower(mixed $mixedCaseValue): array|string |
|
23 | + public static function lower(mixed $mixedCaseValue): array | string |
|
24 | 24 | { |
25 | 25 | if (is_array($mixedCaseValue)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @return array|string If an array of values is passed as the argument, then the returned result will also be an array |
43 | 43 | * with the same dimensions |
44 | 44 | */ |
45 | - public static function upper(mixed $mixedCaseValue): array|string |
|
45 | + public static function upper(mixed $mixedCaseValue): array | string |
|
46 | 46 | { |
47 | 47 | if (is_array($mixedCaseValue)) { |
48 | 48 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @return array|string If an array of values is passed as the argument, then the returned result will also be an array |
65 | 65 | * with the same dimensions |
66 | 66 | */ |
67 | - public static function proper(mixed $mixedCaseValue): array|string |
|
67 | + public static function proper(mixed $mixedCaseValue): array | string |
|
68 | 68 | { |
69 | 69 | if (is_array($mixedCaseValue)) { |
70 | 70 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $mixedCaseValue); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * If an array of values is passed for the $value or $chars arguments, then the returned result |
25 | 25 | * will also be an array with matching dimensions |
26 | 26 | */ |
27 | - public static function left(mixed $value, mixed $chars = 1): array|string |
|
27 | + public static function left(mixed $value, mixed $chars = 1): array | string |
|
28 | 28 | { |
29 | 29 | if (is_array($value) || is_array($chars)) { |
30 | 30 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * If an array of values is passed for the $value, $start or $chars arguments, then the returned result |
55 | 55 | * will also be an array with matching dimensions |
56 | 56 | */ |
57 | - public static function mid(mixed $value, mixed $start, mixed $chars): array|string |
|
57 | + public static function mid(mixed $value, mixed $start, mixed $chars): array | string |
|
58 | 58 | { |
59 | 59 | if (is_array($value) || is_array($start) || is_array($chars)) { |
60 | 60 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $start, $chars); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * If an array of values is passed for the $value or $chars arguments, then the returned result |
84 | 84 | * will also be an array with matching dimensions |
85 | 85 | */ |
86 | - public static function right(mixed $value, mixed $chars = 1): array|string |
|
86 | + public static function right(mixed $value, mixed $chars = 1): array | string |
|
87 | 87 | { |
88 | 88 | if (is_array($value) || is_array($chars)) { |
89 | 89 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $value, $chars); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * If an array of values is passed for any of the arguments, then the returned result |
127 | 127 | * will also be an array with matching dimensions |
128 | 128 | */ |
129 | - public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string |
|
129 | + public static function before(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string |
|
130 | 130 | { |
131 | 131 | if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) { |
132 | 132 | return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * If an array of values is passed for any of the arguments, then the returned result |
185 | 185 | * will also be an array with matching dimensions |
186 | 186 | */ |
187 | - public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array|string |
|
187 | + public static function after(mixed $text, $delimiter, mixed $instance = 1, mixed $matchMode = 0, mixed $matchEnd = 0, mixed $ifNotFound = '#N/A'): array | string |
|
188 | 188 | { |
189 | 189 | if (is_array($text) || is_array($instance) || is_array($matchMode) || is_array($matchEnd) || is_array($ifNotFound)) { |
190 | 190 | return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $text, $delimiter, $instance, $matchMode, $matchEnd, $ifNotFound); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | return implode('', $split); |
217 | 217 | } |
218 | 218 | |
219 | - private static function validateTextBeforeAfter(string $text, null|array|string $delimiter, int $instance, int $matchMode, int $matchEnd, mixed $ifNotFound): array|string |
|
219 | + private static function validateTextBeforeAfter(string $text, null | array | string $delimiter, int $instance, int $matchMode, int $matchEnd, mixed $ifNotFound): array | string |
|
220 | 220 | { |
221 | 221 | $flags = self::matchFlags($matchMode); |
222 | 222 | $delimiter = self::buildDelimiter($delimiter); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @return array|string If an array of values is passed for either of the arguments, then the returned result |
29 | 29 | * will also be an array with matching dimensions |
30 | 30 | */ |
31 | - public static function replace(mixed $oldText, mixed $start, mixed $chars, mixed $newText): array|string |
|
31 | + public static function replace(mixed $oldText, mixed $start, mixed $chars, mixed $newText): array | string |
|
32 | 32 | { |
33 | 33 | if (is_array($oldText) || is_array($start) || is_array($chars) || is_array($newText)) { |
34 | 34 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $oldText, $start, $chars, $newText); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @return array|string If an array of values is passed for either of the arguments, then the returned result |
69 | 69 | * will also be an array with matching dimensions |
70 | 70 | */ |
71 | - public static function substitute(mixed $text = '', mixed $fromText = '', mixed $toText = '', mixed $instance = null): array|string |
|
71 | + public static function substitute(mixed $text = '', mixed $fromText = '', mixed $toText = '', mixed $instance = null): array | string |
|
72 | 72 | { |
73 | 73 | if (is_array($text) || is_array($fromText) || is_array($toText) || is_array($instance)) { |
74 | 74 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $text, $fromText, $toText, $instance); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
24 | 24 | * with the same dimensions |
25 | 25 | */ |
26 | - public static function isBlank(mixed $value = null): array|bool |
|
26 | + public static function isBlank(mixed $value = null): array | bool |
|
27 | 27 | { |
28 | 28 | if (is_array($value)) { |
29 | 29 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @return array|bool|string If an array of numbers is passed as an argument, then the returned result will also be an array |
72 | 72 | * with the same dimensions |
73 | 73 | */ |
74 | - public static function isEven(mixed $value = null): array|string|bool |
|
74 | + public static function isEven(mixed $value = null): array | string | bool |
|
75 | 75 | { |
76 | 76 | if (is_array($value)) { |
77 | 77 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @return array|bool|string If an array of numbers is passed as an argument, then the returned result will also be an array |
96 | 96 | * with the same dimensions |
97 | 97 | */ |
98 | - public static function isOdd(mixed $value = null): array|string|bool |
|
98 | + public static function isOdd(mixed $value = null): array | string | bool |
|
99 | 99 | { |
100 | 100 | if (is_array($value)) { |
101 | 101 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
120 | 120 | * with the same dimensions |
121 | 121 | */ |
122 | - public static function isNumber(mixed $value = null): array|bool |
|
122 | + public static function isNumber(mixed $value = null): array | bool |
|
123 | 123 | { |
124 | 124 | if (is_array($value)) { |
125 | 125 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
142 | 142 | * with the same dimensions |
143 | 143 | */ |
144 | - public static function isLogical(mixed $value = null): array|bool |
|
144 | + public static function isLogical(mixed $value = null): array | bool |
|
145 | 145 | { |
146 | 146 | if (is_array($value)) { |
147 | 147 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
160 | 160 | * with the same dimensions |
161 | 161 | */ |
162 | - public static function isText(mixed $value = null): array|bool |
|
162 | + public static function isText(mixed $value = null): array | bool |
|
163 | 163 | { |
164 | 164 | if (is_array($value)) { |
165 | 165 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @return array|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
178 | 178 | * with the same dimensions |
179 | 179 | */ |
180 | - public static function isNonText(mixed $value = null): array|bool |
|
180 | + public static function isNonText(mixed $value = null): array | bool |
|
181 | 181 | { |
182 | 182 | if (is_array($value)) { |
183 | 183 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param mixed $cellReference The cell to check |
193 | 193 | * @param ?Cell $cell The current cell (containing this formula) |
194 | 194 | */ |
195 | - public static function isFormula(mixed $cellReference = '', ?Cell $cell = null): array|bool|string |
|
195 | + public static function isFormula(mixed $cellReference = '', ?Cell $cell = null): array | bool | string |
|
196 | 196 | { |
197 | 197 | if ($cell === null) { |
198 | 198 | return ExcelError::REF(); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @param mixed ...$args Data values |
19 | 19 | */ |
20 | - public static function sumSquares(mixed ...$args): string|float |
|
20 | + public static function sumSquares(mixed ...$args): string | float |
|
21 | 21 | { |
22 | 22 | $aArgs = Functions::flattenArrayIndexed($args); |
23 | 23 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @param array ...$args Data Series |
59 | 59 | */ |
60 | - public static function kurtosis(...$args): string|int|float |
|
60 | + public static function kurtosis(...$args): string | int | float |
|
61 | 61 | { |
62 | 62 | $aArgs = Functions::flattenArrayIndexed($args); |
63 | 63 | $mean = Averages::average($aArgs); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @return float|int|string The result, or a string containing an error |
104 | 104 | */ |
105 | - public static function skew(...$args): string|int|float |
|
105 | + public static function skew(...$args): string | int | float |
|
106 | 106 | { |
107 | 107 | $aArgs = Functions::flattenArrayIndexed($args); |
108 | 108 | $mean = Averages::average($aArgs); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @param mixed ...$args Data values |
20 | 20 | */ |
21 | - public static function min(mixed ...$args): float|int|string |
|
21 | + public static function min(mixed ...$args): float | int | string |
|
22 | 22 | { |
23 | 23 | $returnValue = null; |
24 | 24 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * |
56 | 56 | * @param mixed ...$args Data values |
57 | 57 | */ |
58 | - public static function minA(mixed ...$args): float|int|string |
|
58 | + public static function minA(mixed ...$args): float | int | string |
|
59 | 59 | { |
60 | 60 | $returnValue = null; |
61 | 61 |