@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $this->constraints[] = new Position($first, $count, $weight); |
52 | 52 | |
53 | - StableSort::usort($this->constraints, function (Position $a, Position $b): int { |
|
53 | + StableSort::usort($this->constraints, function(Position $a, Position $b): int { |
|
54 | 54 | return $b->getWeight() <=> $a->getWeight(); |
55 | 55 | }); |
56 | 56 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | if ($password instanceof Password) { |
124 | 124 | $position = 0; |
125 | 125 | foreach ($password->getFormerPasswords() as $formerPassword) { |
126 | - if ($this->hashFunction->compare((string)$password, (string)$formerPassword)) { |
|
126 | + if ($this->hashFunction->compare((string) $password, (string) $formerPassword)) { |
|
127 | 127 | $positions[] = $position; |
128 | 128 | } |
129 | 129 | ++$position; |