Code Duplication    Length = 3-3 lines in 2 locations

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

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