@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $this->constraints[] = new CountConstraint($min, $max, $weight); |
| 53 | 53 | |
| 54 | - StableSort::usort($this->constraints, static function (CountConstraint $a, CountConstraint $b): int { |
|
| 54 | + StableSort::usort($this->constraints, static function(CountConstraint $a, CountConstraint $b): int { |
|
| 55 | 55 | return $b->getWeight() <=> $a->getWeight(); |
| 56 | 56 | }); |
| 57 | 57 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function test($password, ?int $weight = 1): bool |
| 77 | 77 | { |
| 78 | - $count = $this->getCount((string)$password); |
|
| 78 | + $count = $this->getCount((string) $password); |
|
| 79 | 79 | $constraint = $this->getViolation($count, $weight); |
| 80 | 80 | |
| 81 | 81 | return $constraint === null; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | public function validate($password, TranslatorInterface $translator): ?ValidationError |
| 92 | 92 | { |
| 93 | - $count = $this->getCount((string)$password); |
|
| 93 | + $count = $this->getCount((string) $password); |
|
| 94 | 94 | $constraint = $this->getViolation($count); |
| 95 | 95 | |
| 96 | 96 | if ($constraint !== null) { |