@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @param mixed ...$args Data values |
20 | 20 | */ |
21 | - public static function sumIgnoringStrings(mixed ...$args): float|int|string |
|
21 | + public static function sumIgnoringStrings(mixed ...$args): float | int | string |
|
22 | 22 | { |
23 | 23 | $returnValue = 0; |
24 | 24 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @param mixed ...$args Data values |
47 | 47 | */ |
48 | - public static function sumErroringStrings(mixed ...$args): float|int|string|array |
|
48 | + public static function sumErroringStrings(mixed ...$args): float | int | string | array |
|
49 | 49 | { |
50 | 50 | $returnValue = $maxDecimals = 0; |
51 | 51 | // Loop through the arguments |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | // Is it a numeric value? |
55 | 55 | if (is_numeric($arg)) { |
56 | 56 | // We count the number of signs after aim |
57 | - $parts = explode('.', (string)$arg); |
|
57 | + $parts = explode('.', (string) $arg); |
|
58 | 58 | if (isset($parts[1])) { |
59 | 59 | $decimals = strlen(rtrim($parts[1], '0')); |
60 | 60 | $maxDecimals = max($maxDecimals, $decimals); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * |
88 | 88 | * @return float|int|string The result, or a string containing an error |
89 | 89 | */ |
90 | - public static function product(mixed ...$args): string|int|float |
|
90 | + public static function product(mixed ...$args): string | int | float |
|
91 | 91 | { |
92 | 92 | $arrayList = $args; |
93 | 93 |