Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 614-616 (lines=3) @@
611
            return;
612
        }
613
614
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
615
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
616
        }
617
618
        $this->customRepositoryClassName = $repositoryClassName;
619
    }
@@ 1290-1292 (lines=3) @@
1287
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1288
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1289
        }
1290
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1291
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1292
        }
1293
        if (isset($mapping['collectionClass'])) {
1294
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1295
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1294-1296 (lines=3) @@
1291
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1292
        }
1293
        if (isset($mapping['collectionClass'])) {
1294
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1295
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1296
            }
1297
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1298
        }
1299
        if ( ! empty($mapping['collectionClass'])) {
@@ 1308-1310 (lines=3) @@
1305
1306
        if (isset($mapping['discriminatorMap'])) {
1307
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1308
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1309
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1310
                }
1311
            }
1312
        }
1313