Code Duplication    Length = 15-15 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

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