Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 532-543 (lines=12) @@
529
     *
530
     * @param string $repositoryClassName The class name of the custom repository.
531
     */
532
    public function setCustomRepositoryClass($repositoryClassName)
533
    {
534
        if ($this->isEmbeddedDocument) {
535
            return;
536
        }
537
        
538
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
539
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
540
        }
541
542
        $this->customRepositoryClassName = $repositoryClassName;
543
    }
544
545
    /**
546
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1731-1740 (lines=10) @@
1728
     *
1729
     * @param string[] $subclasses The names of all mapped subclasses.
1730
     */
1731
    public function setSubclasses(array $subclasses)
1732
    {
1733
        foreach ($subclasses as $subclass) {
1734
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1735
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1736
            } else {
1737
                $this->subClasses[] = $subclass;
1738
            }
1739
        }
1740
    }
1741
1742
    /**
1743
     * Sets the parent class names.