Skip to content

Commit

Permalink
Shorten constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Stadly committed Dec 28, 2018
1 parent 06d2342 commit f37569e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Rule/NoReuse.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ final class NoReuse implements Rule
* @param int $first First former password to consider.
* @param int $weight Constraint weight.
*/
public function __construct(
HashFunction $hashFunction,
?int $count = null,
int $first = 0,
int $weight = 1
) {
public function __construct(HashFunction $hashFunction, ?int $count = null, int $first = 0, int $weight = 1)
{
$this->hashFunction = $hashFunction;
$this->addConstraint($count, $first, $weight);
}
Expand Down

0 comments on commit f37569e

Please sign in to comment.