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
@@ 1654-1663 (lines=10) @@
1651
     *
1652
     * @param string[] $subclasses The names of all mapped subclasses.
1653
     */
1654
    public function setSubclasses(array $subclasses)
1655
    {
1656
        foreach ($subclasses as $subclass) {
1657
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1658
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1659
            } else {
1660
                $this->subClasses[] = $subclass;
1661
            }
1662
        }
1663
    }
1664
1665
    /**
1666
     * Sets the parent class names.