From f37569e86fca83559d4418db1e1c3e6d488e9189 Mon Sep 17 00:00:00 2001 From: Stadly Date: Fri, 28 Dec 2018 10:25:52 +0100 Subject: [PATCH] Shorten constructor --- src/Rule/NoReuse.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Rule/NoReuse.php b/src/Rule/NoReuse.php index 64888c1..11ccec7 100644 --- a/src/Rule/NoReuse.php +++ b/src/Rule/NoReuse.php @@ -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); }