Code Duplication    Length = 10-12 lines in 2 locations

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

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