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
@@ 255-269 (lines=15) @@
252
            foreach ($fieldCategory as $name => $field) {
253
                $type = $field['type'];
254
255
                switch ($type) {
256
                    case 'DateTime':
257
                    case 'Date':
258
                        $phpType = '\\DateTime';
259
                        break;
260
                    case 'Boolean':
261
                        $phpType = 'bool';
262
                        break;
263
                    case 'Integer':
264
                        $phpType = 'int';
265
                        break;
266
                    default:
267
                        $phpType = 'string';
268
                        break;
269
                }
270
271
                $fields[$key][$name]['phpType'] = $phpType;
272
                $identifier = $this->getUniqueIdentifier($name, $usedIdentifiers);