Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1286-1288 (lines=3) @@
1283
                    $methods[] = $code;
1284
                }
1285
            } elseif ($associationMapping['type'] & ClassMetadataInfo::TO_MANY) {
1286
                if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1287
                    $methods[] = $code;
1288
                }
1289
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1290
                    $methods[] = $code;
1291
                }
@@ 1289-1291 (lines=3) @@
1286
                if ($code = $this->generateEntityStubMethod($metadata, 'add', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1287
                    $methods[] = $code;
1288
                }
1289
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1290
                    $methods[] = $code;
1291
                }
1292
                if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) {
1293
                    $methods[] = $code;
1294
                }
@@ 1292-1294 (lines=3) @@
1289
                if ($code = $this->generateEntityStubMethod($metadata, 'remove', $associationMapping['fieldName'], $associationMapping['targetEntity'])) {
1290
                    $methods[] = $code;
1291
                }
1292
                if ($code = $this->generateEntityStubMethod($metadata, 'get', $associationMapping['fieldName'], Collection::class)) {
1293
                    $methods[] = $code;
1294
                }
1295
            }
1296
        }
1297