Code Duplication    Length = 15-15 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

@@ 112-126 (lines=15) @@
109
                $dv = $field['dv'];
110
                $customfield = $field['customfield'];
111
112
                switch ($type) {
113
                    case 'DateTime':
114
                    case 'Date':
115
                        $phpType = '\\DateTime';
116
                        break;
117
                    case 'Boolean':
118
                        $phpType = 'bool';
119
                        break;
120
                    case 'Integer':
121
                        $phpType = 'int';
122
                        break;
123
                    default:
124
                        $phpType = 'string';
125
                        break;
126
                }
127
128
                $field['phpType'] = $phpType;
129
@@ 240-254 (lines=15) @@
237
            foreach ($fieldCategory as $name => $field) {
238
                $type = $field['type'];
239
240
                switch ($type) {
241
                    case 'DateTime':
242
                    case 'Date':
243
                        $phpType = '\\DateTime';
244
                        break;
245
                    case 'Boolean':
246
                        $phpType = 'bool';
247
                        break;
248
                    case 'Integer':
249
                        $phpType = 'int';
250
                        break;
251
                    default:
252
                        $phpType = 'string';
253
                        break;
254
                }
255
256
                $fields[$key][$name]['phpType'] = $phpType;
257
                $identifier = $this->getUniqueIdentifier($name, $usedIdentifiers);