Code Duplication    Length = 3-3 lines in 4 locations

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.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
    }
@@ 1266-1268 (lines=3) @@
1263
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1264
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1265
        }
1266
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1267
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1268
        }
1269
        if (isset($mapping['collectionClass'])) {
1270
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1271
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1270-1272 (lines=3) @@
1267
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1268
        }
1269
        if (isset($mapping['collectionClass'])) {
1270
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1271
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1272
            }
1273
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1274
        }
1275
        if ( ! empty($mapping['collectionClass'])) {
@@ 1284-1286 (lines=3) @@
1281
1282
        if (isset($mapping['discriminatorMap'])) {
1283
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1284
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1285
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1286
                }
1287
            }
1288
        }
1289