Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1215-1217 (lines=3) @@
1212
                    $methods[] = $code;
1213
                }
1214
            } elseif ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) {
1215
                if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1216
                    $methods[] = $code;
1217
                }
1218
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1219
                    $methods[] = $code;
1220
                }
@@ 1218-1220 (lines=3) @@
1215
                if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1216
                    $methods[] = $code;
1217
                }
1218
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1219
                    $methods[] = $code;
1220
                }
1221
                if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) {
1222
                    $methods[] = $code;
1223
                }
@@ 1221-1223 (lines=3) @@
1218
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1219
                    $methods[] = $code;
1220
                }
1221
                if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) {
1222
                    $methods[] = $code;
1223
                }
1224
            }
1225
        }
1226