@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @param float|string $operand string value to test |
48 | 48 | */ |
49 | - public static function convertToNumberIfNumeric(float|string &$operand): bool |
|
49 | + public static function convertToNumberIfNumeric(float | string &$operand): bool |
|
50 | 50 | { |
51 | 51 | $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/'); |
52 | 52 | $value = preg_replace(['/(\d)' . $thousandsSeparator . '(\d)/u', '/([+-])\s+(\d)/u'], ['$1$2', '$1$2'], trim("$operand")); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @param float|string $operand string value to test |
90 | 90 | */ |
91 | - public static function convertToNumberIfPercent(float|string &$operand): bool |
|
91 | + public static function convertToNumberIfPercent(float | string &$operand): bool |
|
92 | 92 | { |
93 | 93 | $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/'); |
94 | 94 | $value = preg_replace('/(\d)' . $thousandsSeparator . '(\d)/u', '$1$2', trim("$operand")); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @param float|string $operand string value to test |
115 | 115 | */ |
116 | - public static function convertToNumberIfCurrency(float|string &$operand): bool |
|
116 | + public static function convertToNumberIfCurrency(float | string &$operand): bool |
|
117 | 117 | { |
118 | 118 | $currencyRegexp = self::currencyMatcherRegexp(); |
119 | 119 | $thousandsSeparator = preg_quote(StringHelper::getThousandsSeparator(), '/'); |