|
@@ -50,7 +50,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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; |
Please login to merge, or discard this patch.