CS: Remove invisible chars

This commit is contained in:
Dariusz Ruminski 2017-03-31 11:34:31 +02:00 committed by Nicolas Grekas
parent 11a06ccced
commit 0f623f4220
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface
$formatter = $this->getNumberFormatter();
// replace normal spaces so that the formatter can read them
$value = $formatter->parse(str_replace(' ', ' ', $value));
$value = $formatter->parse(str_replace(' ', "\xc2\xa0", $value));
if (intl_is_failure($formatter->getErrorCode())) {
throw new TransformationFailedException($formatter->getErrorMessage());

View File

@ -59,7 +59,7 @@ class ValidatorExtension extends AbstractExtension
public function loadTypeGuesser()
{
// 2.5 API
// 2.5 API
if ($this->validator instanceof ValidatorInterface) {
return new ValidatorTypeGuesser($this->validator);
}