10000 [Validator] make UuidValidator class formatting consistent. · symfony/symfony@3cc2f10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cc2f10

Browse files
author
Hugo Hamon
committed
[Validator] make UuidValidator class formatting consistent.
1 parent e262ef0 commit 3cc2f10

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

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

Lines changed: 6 additions & 12 deletions
< D493 tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,14 @@ private function validateStrict($value, Uuid $constraint)
232232
if ($i !== $h) {
233233
if ($this->context instanceof ExecutionContextInterface) {
234234
$this->context->buildViolation($constraint->message)
235-
->setParameter(
236-
'{{ value }}',
237-
$this->formatValue($value)
238-
)
239-
->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR)
240-
->addViolation();
235+
->setParameter('{{ value }}', $this->formatValue($value))
236+
->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR)
237+
->addViolation();
241238
} else {
242239
$this->buildViolation($constraint->message)
243-
->setParameter(
244-
'{{ value }}',
245-
$this->formatValue($value)
246-
)
247-
->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR)
248-
->addViolation();
240+
->setParameter('{{ value }}', $this->formatValue($value))
241+
->setCode(Uuid::INVALID_HYPHEN_PLACEMENT_ERROR)
242+
->addViolation();
249243
}
250244

251245
return;

0 commit comments

Comments
 (0)
0