Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 562-564 (lines=3) @@
559
            return;
560
        }
561
562
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
563
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
564
        }
565
566
        $this->customRepositoryClassName = $repositoryClassName;
567
    }
@@ 1225-1227 (lines=3) @@
1222
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1223
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1224
        }
1225
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1226
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1227
        }
1228
        if (isset($mapping['collectionClass'])) {
1229
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1230
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1229-1231 (lines=3) @@
1226
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1227
        }
1228
        if (isset($mapping['collectionClass'])) {
1229
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1230
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1231
            }
1232
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1233
        }
1234
        if ( ! empty($mapping['collectionClass'])) {
@@ 1243-1245 (lines=3) @@
1240
1241
        if (isset($mapping['discriminatorMap'])) {
1242
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1243
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1244
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1245
                }
1246
            }
1247
        }
1248