Code Duplication    Length = 15-16 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

@@ 122-137 (lines=16) @@
119
                $customfield = $field['customfield'];
120
                $nullable = false;
121
122
                switch ($type) {
123
                    case 'DateTime':
124
                    case 'Date':
125
                        $phpType = '\\DateTimeInterface';
126
                        $nullable = true;
127
                        break;
128
                    case 'Boolean':
129
                        $phpType = 'bool';
130
                        break;
131
                    case 'Integer':
132
                        $phpType = 'int';
133
                        break;
134
                    default:
135
                        $phpType = 'string';
136
                        break;
137
                }
138
139
                $field['phpType'] = $phpType;
140
@@ 256-270 (lines=15) @@
253
            foreach ($fieldCategory as $name => $field) {
254
                $type = $field['type'];
255
256
                switch ($type) {
257
                    case 'DateTime':
258
                    case 'Date':
259
                        $phpType = '\\DateTime';
260
                        break;
261
                    case 'Boolean':
262
                        $phpType = 'bool';
263
                        break;
264
                    case 'Integer':
265
                        $phpType = 'int';
266
                        break;
267
                    default:
268
                        $phpType = 'string';
269
                        break;
270
                }
271
272
                $fields[$key][$name]['phpType'] = $phpType;
273
                $identifier = $this->getUniqueIdentifier($name, $usedIdentifiers);