Code Duplication    Length = 9-9 lines in 2 locations

src/Oro/Bundle/SalesBundle/Entity/Lead.php 2 locations

@@ 1016-1024 (lines=9) @@
1013
     *
1014
     * @return Lead
1015
     */
1016
    public function addOpportunity(Opportunity $opportunity)
1017
    {
1018
        if (!$this->opportunities->contains($opportunity)) {
1019
            $opportunity->setLead($this);
1020
            $this->opportunities->add($opportunity);
1021
        }
1022
1023
        return $this;
1024
    }
1025
1026
    /**
1027
     * @param Opportunity $opportunity
@@ 1031-1039 (lines=9) @@
1028
     *
1029
     * @return Lead
1030
     */
1031
    public function removeOpportunity(Opportunity $opportunity)
1032
    {
1033
        if ($this->opportunities->contains($opportunity)) {
1034
            $this->opportunities->removeElement($opportunity);
1035
            $opportunity->setLead(null);
1036
        }
1037
1038
        return $this;
1039
    }
1040
1041
    /**
1042
     * @return string