Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 547-558 (lines=12) @@
544
     *
545
     * @param string $repositoryClassName The class name of the custom repository.
546
     */
547
    public function setCustomRepositoryClass($repositoryClassName)
548
    {
549
        if ($this->isEmbeddedDocument) {
550
            return;
551
        }
552
553
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
554
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
555
        }
556
557
        $this->customRepositoryClassName = $repositoryClassName;
558
    }
559
560
    /**
561
     * Dispatches the lifecycle event of the given document by invoking all
@@ 1879-1888 (lines=10) @@
1876
     *
1877
     * @param string[] $subclasses The names of all mapped subclasses.
1878
     */
1879
    public function setSubclasses(array $subclasses)
1880
    {
1881
        foreach ($subclasses as $subclass) {
1882
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1883
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1884
            } else {
1885
                $this->subClasses[] = $subclass;
1886
            }
1887
        }
1888
    }
1889
1890
    /**
1891
     * Sets the parent class names.