@@ -42,7 +42,7 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $this->constraints[] = new DateIntervalConstraint($min, $max, $weight); |
| 44 | 44 | |
| 45 | - StableSort::usort($this->constraints, static function ( |
|
| 45 | + StableSort::usort($this->constraints, static function( |
|
| 46 | 46 | DateIntervalConstraint $a, |
| 47 | 47 | DateIntervalConstraint $b |
| 48 | 48 | ): int { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $this->constraints[] = new PositionConstraint($first, $count, $weight); |
| 48 | 48 | |
| 49 | - StableSort::usort($this->constraints, static function (PositionConstraint $a, PositionConstraint $b): int { |
|
| 49 | + StableSort::usort($this->constraints, static function(PositionConstraint $a, PositionConstraint $b): int { |
|
| 50 | 50 | return $b->getWeight() <=> $a->getWeight(); |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | if ($password instanceof Password) { |
| 132 | 132 | $position = 0; |
| 133 | 133 | foreach ($password->getFormerPasswords() as $formerPassword) { |
| 134 | - if ($this->hashFunction->compare((string)$password, (string)$formerPassword)) { |
|
| 134 | + if ($this->hashFunction->compare((string) $password, (string) $formerPassword)) { |
|
| 135 | 135 | $positions[] = $position; |
| 136 | 136 | } |
| 137 | 137 | ++$position; |