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
@@ 1877-1886 (lines=10) @@
1874
     *
1875
     * @param string[] $subclasses The names of all mapped subclasses.
1876
     */
1877
    public function setSubclasses(array $subclasses)
1878
    {
1879
        foreach ($subclasses as $subclass) {
1880
            if (strpos($subclass, '\\') === false && strlen($this->namespace)) {
1881
                $this->subClasses[] = $this->namespace . '\\' . $subclass;
1882
            } else {
1883
                $this->subClasses[] = $subclass;
1884
            }
1885
        }
1886
    }
1887
1888
    /**
1889
     * Sets the parent class names.