@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * Formats a numeric value as a string for output in various output writers forcing |
330 | 330 | * point as decimal separator in case locale is other than English. |
331 | 331 | */ |
332 | - public static function formatNumber(float|int|string|null $numericValue): string |
|
332 | + public static function formatNumber(float | int | string | null $numericValue): string |
|
333 | 333 | { |
334 | 334 | if (is_float($numericValue)) { |
335 | 335 | return str_replace(',', '.', (string) $numericValue); |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | { |
385 | 385 | // characters |
386 | 386 | $chars = self::convertEncoding($textValue, 'UTF-16LE', 'UTF-8'); |
387 | - $ln = (int) (strlen($chars) / 2); // N.B. - strlen, not mb_strlen issue #642 |
|
387 | + $ln = (int) (strlen($chars) / 2); // N.B. - strlen, not mb_strlen issue #642 |
|
388 | 388 | |
389 | 389 | return pack('vC', $ln, 0x0001) . $chars; |
390 | 390 | } |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | * |
639 | 639 | * @return float|string string or only the leading numeric part of the string |
640 | 640 | */ |
641 | - public static function testStringAsNumeric(string $textValue): float|string |
|
641 | + public static function testStringAsNumeric(string $textValue): float | string |
|
642 | 642 | { |
643 | 643 | if (is_numeric($textValue)) { |
644 | 644 | return $textValue; |