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
@@ 1646-1655 (lines=10) @@
1643
     *
1644
     * @param string[] $subclasses The names of all mapped subclasses.
1645
     */
1646
    public function setSubclasses(array $subclasses)
1647
    {
1648
        foreach ($subclasses as $subclass) {
1649
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1650
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1651
            } else {
1652
                $this->subClasses[] = $subclass;
1653
            }
1654
        }
1655
    }
1656
1657
    /**
1658
     * Sets the parent class names.