Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 515-526 (lines=12) @@
512
     *
513
     * @param string $repositoryClassName The class name of the custom repository.
514
     */
515
    public function setCustomRepositoryClass($repositoryClassName)
516
    {
517
        if ($this->isEmbeddedDocument) {
518
            return;
519
        }
520
        
521
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
522
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
523
        }
524
525
        $this->customRepositoryClassName = $repositoryClassName;
526
    }
527
528
    /**
529
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1661-1670 (lines=10) @@
1658
     *
1659
     * @param string[] $subclasses The names of all mapped subclasses.
1660
     */
1661
    public function setSubclasses(array $subclasses)
1662
    {
1663
        foreach ($subclasses as $subclass) {
1664
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1665
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1666
            } else {
1667
                $this->subClasses[] = $subclass;
1668
            }
1669
        }
1670
    }
1671
1672
    /**
1673
     * Sets the parent class names.