Code Duplication    Length = 15-15 lines in 2 locations

src/Service/EntitiesGeneratorService.php 2 locations

@@ 96-110 (lines=15) @@
93
                $dv = $field['dv'];
94
                $customfield = $field['customfield'];
95
96
                switch ($type) {
97
                    case 'DateTime':
98
                    case 'Date':
99
                        $phpType = '\\DateTime';
100
                        break;
101
                    case 'Boolean':
102
                        $phpType = 'bool';
103
                        break;
104
                    case 'Integer':
105
                        $phpType = 'int';
106
                        break;
107
                    default:
108
                        $phpType = 'string';
109
                        break;
110
                }
111
112
                $field['phpType'] = $phpType;
113
@@ 221-235 (lines=15) @@
218
            foreach ($fieldCategory as $name => $field) {
219
                $type = $field['type'];
220
221
                switch ($type) {
222
                    case 'DateTime':
223
                    case 'Date':
224
                        $phpType = '\\DateTime';
225
                        break;
226
                    case 'Boolean':
227
                        $phpType = 'bool';
228
                        break;
229
                    case 'Integer':
230
                        $phpType = 'int';
231
                        break;
232
                    default:
233
                        $phpType = 'string';
234
                        break;
235
                }
236
237
                $fields[$key][$name]['phpType'] = $phpType;
238
                $identifier = $this->getUniqueIdentifier($name, $usedIdentifiers);