8000 fix cs · symfony/symfony@bd741b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd741b8

Browse files
fix cs
1 parent 9097c47 commit bd741b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
?array $options = null,
3131
?string $message = null,
3232
?array $groups = null,
33-
mixed $payload = null
33+
mixed $payload = null,
3434
) {
3535
parent::__construct($options, $groups, $payload);
3636

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function validate(mixed $value, Constraint $constraint): void
3737

3838
$value = (string) $value;
3939

40-
if(preg_match(Slug::SLUG_PATTERN, $value) === 0) {
40+
if (0 === preg_match(Slug::SLUG_PATTERN, $value)) {
4141
$this->context->buildViolation($constraint->message)
4242
->setParameter('{{ value }}', $this->formatValue($value))
4343
->setCode(Slug::NOT_SLUG_ERROR)

0 commit comments

Comments
 (0)
0