Code Duplication    Length = 11-15 lines in 2 locations

Command/DocumentGenerateCommand.php 2 locations

@@ 193-203 (lines=11) @@
190
191
                    $property['property_options'] = $this->askForPropertyOptions($input, $output);
192
                    break;
193
                case 'parentDocument':
194
                    if (!$this->isUniqueAnnotation($properties, $property['annotation'])) {
195
                        $output->writeln(
196
                            $this
197
                                ->getException('Only one "%s" field can be added', [$property['annotation']])
198
                                ->getMessage()
199
                        );
200
                        continue(2);
201
                    }
202
                    $property['property_class'] = $this->askForPropertyClass($input, $output);
203
                    break;
204
                case 'property':
205
                    $property['property_name'] = $this->askForPropertyName($input, $output, $property['field_name']);
206
@@ 221-235 (lines=15) @@
218
219
                    $property['property_options'] = $this->askForPropertyOptions($input, $output);
220
                    break;
221
                case 'ttl':
222
                    if (!$this->isUniqueAnnotation($properties, $property['annotation'])) {
223
                        $output->writeln(
224
                            $this
225
                                ->getException('Only one "%s" field can be added', [$property['annotation']])
226
                                ->getMessage()
227
                        );
228
                        continue(2);
229
                    }
230
                    $property['property_default'] = $this->questionHelper->ask(
231
                        $input,
232
                        $output,
233
                        $this->getQuestion("\n" . 'Default time to live')
234
                    );
235
                    break;
236
                case 'id':
237
                    if (!$this->isUniqueAnnotation($properties, $property['annotation'])) {
238
                        $output->writeln(