Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 538-549 (lines=12) @@
535
     *
536
     * @param string $repositoryClassName The class name of the custom repository.
537
     */
538
    public function setCustomRepositoryClass($repositoryClassName)
539
    {
540
        if ($this->isEmbeddedDocument) {
541
            return;
542
        }
543
544
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
545
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
546
        }
547
548
        $this->customRepositoryClassName = $repositoryClassName;
549
    }
550
551
    /**
552
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1755-1764 (lines=10) @@
1752
     *
1753
     * @param string[] $subclasses The names of all mapped subclasses.
1754
     */
1755
    public function setSubclasses(array $subclasses)
1756
    {
1757
        foreach ($subclasses as $subclass) {
1758
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1759
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1760
            } else {
1761
                $this->subClasses[] = $subclass;
1762
            }
1763
        }
1764
    }
1765
1766
    /**
1767
     * Sets the parent class names.