Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ORM/Tools/EntityGenerator.php 2 locations

@@ 1491-1493 (lines=3) @@
1488
            if (isset($associationMapping['id']) && $associationMapping['id']) {
1489
                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1490
1491
                if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1492
                    $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1493
                }
1494
            }
1495
1496
            $type = null;
@@ 1685-1687 (lines=3) @@
1682
            if (isset($fieldMapping['id']) && $fieldMapping['id']) {
1683
                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1684
1685
                if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1686
                    $lines[] = $this->spaces.' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1687
                }
1688
1689
                if ($metadata->sequenceGeneratorDefinition) {
1690
                    $sequenceGenerator = [];