Code Duplication    Length = 9-9 lines in 2 locations

src/OroCRM/Bundle/ContactBundle/Entity/Contact.php 2 locations

@@ 1559-1567 (lines=9) @@
1556
     *
1557
     * @return $this
1558
     */
1559
    public function addDefaultInAccount(Account $account)
1560
    {
1561
        if (!$this->defaultInAccounts->contains($account)) {
1562
            $this->defaultInAccounts->add($account);
1563
            $account->setDefaultContact($this);
1564
        }
1565
1566
        return $this;
1567
    }
1568
1569
    /**
1570
     * @param Account $account
@@ 1574-1582 (lines=9) @@
1571
     *
1572
     * @return $this
1573
     */
1574
    public function removeDefaultInAccount(Account $account)
1575
    {
1576
        $this->defaultInAccounts->removeElement($account);
1577
        if ($account->getDefaultContact() === $this) {
1578
            $account->setDefaultContact(null);
1579
        }
1580
1581
        return $this;
1582
    }
1583
1584
    /**
1585
     * @return Account[]|Collection