Code Duplication    Length = 3-3 lines in 4 locations

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 4 locations

@@ 593-595 (lines=3) @@
590
            return;
591
        }
592
593
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
594
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
595
        }
596
597
        $this->customRepositoryClassName = $repositoryClassName;
598
    }
@@ 1902-1904 (lines=3) @@
1899
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1900
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1901
        }
1902
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1903
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1904
        }
1905
        if (isset($mapping['collectionClass'])) {
1906
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1907
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1906-1908 (lines=3) @@
1903
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1904
        }
1905
        if (isset($mapping['collectionClass'])) {
1906
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1907
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1908
            }
1909
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1910
        }
1911
        if ( ! empty($mapping['collectionClass'])) {
@@ 1920-1922 (lines=3) @@
1917
1918
        if (isset($mapping['discriminatorMap'])) {
1919
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1920
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1921
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1922
                }
1923
            }
1924
        }
1925