Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php 2 locations

@@ 1386-1388 (lines=3) @@
1383
    protected function _validateAndCompleteFieldMapping(array &$mapping)
1384
    {
1385
        // Check mandatory fields
1386
        if ( ! isset($mapping['fieldName']) || !$mapping['fieldName']) {
1387
            throw MappingException::missingFieldName($this->name);
1388
        }
1389
1390
        if ( ! isset($mapping['type'])) {
1391
            // Default to string
@@ 1506-1508 (lines=3) @@
1503
1504
        // Mandatory attributes for both sides
1505
        // Mandatory: fieldName, targetEntity
1506
        if ( ! isset($mapping['fieldName']) || !$mapping['fieldName']) {
1507
            throw MappingException::missingFieldName($this->name);
1508
        }
1509
1510
        if ( ! isset($mapping['targetEntity'])) {
1511
            throw MappingException::missingTargetEntity($mapping['fieldName']);