Code Duplication    Length = 5-5 lines in 2 locations

src/Security/Member.php 2 locations

@@ 1627-1631 (lines=5) @@
1624
    {
1625
        $valid = parent::validate();
1626
1627
        if (!$this->ID || $this->isChanged('Password')) {
1628
            if ($this->Password && self::$password_validator) {
1629
                $valid->combineAnd(self::$password_validator->validate($this->Password, $this));
1630
            }
1631
        }
1632
1633
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1634
            if ($this->SetPassword && self::$password_validator) {
@@ 1633-1637 (lines=5) @@
1630
            }
1631
        }
1632
1633
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1634
            if ($this->SetPassword && self::$password_validator) {
1635
                $valid->combineAnd(self::$password_validator->validate($this->SetPassword, $this));
1636
            }
1637
        }
1638
1639
        return $valid;
1640
    }