Code Duplication    Length = 10-12 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php 2 locations

@@ 516-527 (lines=12) @@
513
     *
514
     * @param string $repositoryClassName The class name of the custom repository.
515
     */
516
    public function setCustomRepositoryClass($repositoryClassName)
517
    {
518
        if ($this->isEmbeddedDocument) {
519
            return;
520
        }
521
        
522
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
523
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
524
        }
525
526
        $this->customRepositoryClassName = $repositoryClassName;
527
    }
528
529
    /**
530
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1636-1645 (lines=10) @@
1633
     *
1634
     * @param string[] $subclasses The names of all mapped subclasses.
1635
     */
1636
    public function setSubclasses(array $subclasses)
1637
    {
1638
        foreach ($subclasses as $subclass) {
1639
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1640
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1641
            } else {
1642
                $this->subClasses[] = $subclass;
1643
            }
1644
        }
1645
    }
1646
1647
    /**
1648
     * Sets the parent class names.