Code Duplication    Length = 10-10 lines in 3 locations

bridge/doctrine-phpcr-odm/src/FieldMapper.php 3 locations

@@ 60-69 (lines=10) @@
57
            return;
58
        }
59
60
        if ($type instanceof StringType) {
61
            $metadata->mapField([
62
                'fieldName' => $fieldName,
63
                'type' => 'string',
64
                'nullable' => true,
65
                'multivalue' => $options['multivalue'],
66
            ]);
67
68
            return;
69
        }
70
71
        if ($type instanceof IntegerType) {
72
            $metadata->mapField([
@@ 71-80 (lines=10) @@
68
            return;
69
        }
70
71
        if ($type instanceof IntegerType) {
72
            $metadata->mapField([
73
                'fieldName' => $fieldName,
74
                'type' => 'long',
75
                'nullable' => true,
76
                'multivalue' => $options['multivalue'],
77
            ]);
78
79
            return;
80
        }
81
82
        if ($type instanceof DateTimeType) {
83
            $metadata->mapField([
@@ 82-91 (lines=10) @@
79
            return;
80
        }
81
82
        if ($type instanceof DateTimeType) {
83
            $metadata->mapField([
84
                'fieldName' => $fieldName,
85
                'type' => 'date',
86
                'nullable' => true,
87
                'multivalue' => $options['multivalue'],
88
            ]);
89
90
            return;
91
        }
92
93
        if ($type instanceof ReferenceType) {
94
            $metadata->mapManyToOne([