Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1572-1574 (lines=3) @@
1569
            if (isset($associationMapping['id']) && $associationMapping['id']) {
1570
                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1571
1572
                if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1573
                    $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1574
                }
1575
            }
1576
1577
            $type = null;
@@ 1766-1768 (lines=3) @@
1763
            if (isset($fieldMapping['id']) && $fieldMapping['id']) {
1764
                $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id';
1765
1766
                if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) {
1767
                    $lines[] = $this->spaces.' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")';
1768
                }
1769
1770
                if ($metadata->sequenceGeneratorDefinition) {
1771
                    $sequenceGenerator = [];