Skip to content

Commit 1a3bf96

Browse files
author
symfonyaml
committed
Fix Coding Standards suggested by fabbot.io
1 parent 926ad7c commit 1a3bf96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/Validator/Constraints/DataUriValidator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* @author Kev <https://github.com/symfonyaml>
21+
*
2122
* @see https://datatracker.ietf.org/doc/html/rfc2397
2223
*/
2324
class DataUriValidator extends ConstraintValidator
@@ -54,8 +55,8 @@ public function validate(mixed $value, Constraint $constraint): void
5455
}
5556

5657
if (!preg_match(static::PATTERN, $value)) {
57-
if (strlen($value) > self::MAX_MESSAGE_VALUE_LENGTH) {
58-
$value = sprintf('%s (truncated)', $this->formatValue(substr($value, 0, self::MAX_MESSAGE_VALUE_LENGTH) . '...'));
58+
if (\strlen($value) > self::MAX_MESSAGE_VALUE_LENGTH) {
59+
$value = \sprintf('%s (truncated)', $this->formatValue(substr($value, 0, self::MAX_MESSAGE_VALUE_LENGTH).'...'));
5960
} else {
6061
$value = $this->formatValue($value);
6162
}

0 commit comments

Comments
 (0)