Skip to content

Commit 0f623f4

Browse files
keradusnicolas-grekas
authored andcommitted
CS: Remove invisible chars
1 parent 11a06cc commit 0f623f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Form/Extension/Core/DataTransformer/PercentToLocalizedStringTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function reverseTransform($value)
120120

121121
$formatter = $this->getNumberFormatter();
122122
// replace normal spaces so that the formatter can read them
123-
$value = $formatter->parse(str_replace(' ', ' ', $value));
123+
$value = $formatter->parse(str_replace(' ', "\xc2\xa0", $value));
124124

125125
if (intl_is_failure($formatter->getErrorCode())) {
126126
throw new TransformationFailedException($formatter->getErrorMessage());

src/Symfony/Component/Form/Extension/Validator/ValidatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct($validator)
5959

6060
public function loadTypeGuesser()
6161
{
62-
// 2.5 API
62+
// 2.5 API
6363
if ($this->validator instanceof ValidatorInterface) {
6464
return new ValidatorTypeGuesser($this->validator);
6565
}

0 commit comments

Comments
 (0)