Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 526-537 (lines=12) @@
523
     *
524
     * @param string $repositoryClassName The class name of the custom repository.
525
     */
526
    public function setCustomRepositoryClass($repositoryClassName)
527
    {
528
        if ($this->isEmbeddedDocument) {
529
            return;
530
        }
531
        
532
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
533
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
534
        }
535
536
        $this->customRepositoryClassName = $repositoryClassName;
537
    }
538
539
    /**
540
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1684-1693 (lines=10) @@
1681
     *
1682
     * @param string[] $subclasses The names of all mapped subclasses.
1683
     */
1684
    public function setSubclasses(array $subclasses)
1685
    {
1686
        foreach ($subclasses as $subclass) {
1687
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1688
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1689
            } else {
1690
                $this->subClasses[] = $subclass;
1691
            }
1692
        }
1693
    }
1694
1695
    /**
1696
     * Sets the parent class names.