Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 607-609 (lines=3) @@
604
            return;
605
        }
606
607
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
608
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
609
        }
610
611
        $this->customRepositoryClassName = $repositoryClassName;
612
    }
@@ 1280-1282 (lines=3) @@
1277
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1278
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1279
        }
1280
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1281
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1282
        }
1283
        if (isset($mapping['collectionClass'])) {
1284
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1285
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1284-1286 (lines=3) @@
1281
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1282
        }
1283
        if (isset($mapping['collectionClass'])) {
1284
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1285
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1286
            }
1287
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1288
        }
1289
        if ( ! empty($mapping['collectionClass'])) {
@@ 1298-1300 (lines=3) @@
1295
1296
        if (isset($mapping['discriminatorMap'])) {
1297
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1298
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1299
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1300
                }
1301
            }
1302
        }
1303