Code Duplication    Length = 5-5 lines in 2 locations

src/Security/Member.php 2 locations

@@ 1596-1600 (lines=5) @@
1593
    {
1594
        $valid = parent::validate();
1595
1596
        if (!$this->ID || $this->isChanged('Password')) {
1597
            if ($this->Password && self::$password_validator) {
1598
                $valid->combineAnd(self::$password_validator->validate($this->Password, $this));
1599
            }
1600
        }
1601
1602
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1603
            if ($this->SetPassword && self::$password_validator) {
@@ 1602-1606 (lines=5) @@
1599
            }
1600
        }
1601
1602
        if ((!$this->ID && $this->SetPassword) || $this->isChanged('SetPassword')) {
1603
            if ($this->SetPassword && self::$password_validator) {
1604
                $valid->combineAnd(self::$password_validator->validate($this->SetPassword, $this));
1605
            }
1606
        }
1607
1608
        return $valid;
1609
    }