Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 618-620 (lines=3) @@
615
            return;
616
        }
617
618
        if ($repositoryClassName && strpos($repositoryClassName, '\\') === false && strlen($this->namespace)) {
619
            $repositoryClassName = $this->namespace . '\\' . $repositoryClassName;
620
        }
621
622
        $this->customRepositoryClassName = $repositoryClassName;
623
    }
@@ 1300-1302 (lines=3) @@
1297
        if ($this->discriminatorField !== null && $this->discriminatorField == $mapping['name']) {
1298
            throw MappingException::discriminatorFieldConflict($this->name, $this->discriminatorField);
1299
        }
1300
        if (isset($mapping['targetDocument']) && strpos($mapping['targetDocument'], '\\') === false && strlen($this->namespace)) {
1301
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1302
        }
1303
        if (isset($mapping['collectionClass'])) {
1304
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1305
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
@@ 1304-1306 (lines=3) @@
1301
            $mapping['targetDocument'] = $this->namespace . '\\' . $mapping['targetDocument'];
1302
        }
1303
        if (isset($mapping['collectionClass'])) {
1304
            if (strpos($mapping['collectionClass'], '\\') === false && strlen($this->namespace)) {
1305
                $mapping['collectionClass'] = $this->namespace . '\\' . $mapping['collectionClass'];
1306
            }
1307
            $mapping['collectionClass'] = ltrim($mapping['collectionClass'], '\\');
1308
        }
1309
        if ( ! empty($mapping['collectionClass'])) {
@@ 1318-1320 (lines=3) @@
1315
1316
        if (isset($mapping['discriminatorMap'])) {
1317
            foreach ($mapping['discriminatorMap'] as $key => $class) {
1318
                if (strpos($class, '\\') === false && strlen($this->namespace)) {
1319
                    $mapping['discriminatorMap'][$key] = $this->namespace . '\\' . $class;
1320
                }
1321
            }
1322
        }
1323