@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $this->constraints[] = new Count($min, $max, $weight); |
39 | 39 | |
40 | - StableSort::usort($this->constraints, function (Count $a, Count $b): int { |
|
40 | + StableSort::usort($this->constraints, function(Count $a, Count $b): int { |
|
41 | 41 | return $b->getWeight() <=> $a->getWeight(); |
42 | 42 | }); |
43 | 43 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function test($password): bool |
54 | 54 | { |
55 | - $count = $this->getCount((string)$password); |
|
55 | + $count = $this->getCount((string) $password); |
|
56 | 56 | $constraint = $this->getViolation($count); |
57 | 57 | |
58 | 58 | return $constraint === null; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function enforce($password): void |
68 | 68 | { |
69 | - $count = $this->getCount((string)$password); |
|
69 | + $count = $this->getCount((string) $password); |
|
70 | 70 | $constraint = $this->getViolation($count); |
71 | 71 | |
72 | 72 | if ($constraint !== null) { |