Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 625-627 (lines=3) @@
622
            return;
623
        }
624
625
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
626
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
627
        }
628
629
        $this->customRepositoryClassName = $repositoryClassName;
630
    }
@@ 1310-1312 (lines=3) @@
1307
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1308
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1309
        }
1310
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1311
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1312
        }
1313
        if (isset($mapping['collectionClass'])) {
1314
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1315
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1314-1316 (lines=3) @@
1311
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1312
        }
1313
        if (isset($mapping['collectionClass'])) {
1314
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1315
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1316
            }
1317
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1318
        }
1319
        if ( ! empty($mapping['collectionClass'])) {
@@ 1328-1330 (lines=3) @@
1325
1326
        if (isset($mapping['discriminatorMap'])) {
1327
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1328
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1329
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1330
                }
1331
            }
1332
        }
1333