Code Duplication    Length = 8-9 lines in 2 locations

src/Oro/Bundle/SalesBundle/Entity/B2bCustomer.php 1 location

@@ 724-731 (lines=8) @@
721
     *
722
     * @return B2bCustomer
723
     */
724
    public function addEmail(B2bCustomerEmail $email)
725
    {
726
        if (!$this->emails->contains($email)) {
727
            $this->emails->add($email);
728
            $email->setOwner($this);
729
        }
730
        return $this;
731
    }
732
    /**
733
     * Remove email
734
     *

src/Oro/Bundle/SalesBundle/Entity/Lead.php 1 location

@@ 1249-1257 (lines=9) @@
1246
     *
1247
     * @return Lead
1248
     */
1249
    public function addEmail(LeadEmail $email)
1250
    {
1251
        if (!$this->emails->contains($email)) {
1252
            $this->emails->add($email);
1253
            $email->setOwner($this);
1254
        }
1255
1256
        return $this;
1257
    }
1258
1259
    /**
1260
     * Remove email