@@ -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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function test($password, ?int $weight = 1): bool |
| 55 | 55 | { |
| 56 | - $count = $this->getCount((string)$password); |
|
| 56 | + $count = $this->getCount((string) $password); |
|
| 57 | 57 | $constraint = $this->getViolation($count, $weight); |
| 58 | 58 | |
| 59 | 59 | return $constraint === null; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function enforce($password): void |
| 69 | 69 | { |
| 70 | - $count = $this->getCount((string)$password); |
|
| 70 | + $count = $this->getCount((string) $password); |
|
| 71 | 71 | $constraint = $this->getViolation($count); |
| 72 | 72 | |
| 73 | 73 | if ($constraint !== null) { |