Code Duplication    Length = 10-12 lines in 2 locations

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

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