Code Duplication    Length = 5-5 lines in 2 locations

src/Security/Member.php 2 locations

@@ 1636-1640 (lines=5) @@
1633
    {
1634
        $valid = parent::validate();
1635
1636
        if (!$this->ID || $this->isChanged('Password')) {
1637
            if ($this->Password && self::$password_validator) {
1638
                $valid->combineAnd(self::$password_validator->validate($this->Password, $this));
1639
            }
1640
        }
1641
1642
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1643
            if ($this->SetPassword && self::$password_validator) {
@@ 1642-1646 (lines=5) @@
1639
            }
1640
        }
1641
1642
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1643
            if ($this->SetPassword && self::$password_validator) {
1644
                $valid->combineAnd(self::$password_validator->validate($this->SetPassword, $this));
1645
            }
1646
        }
1647
1648
        return $valid;
1649
    }