Code Duplication    Length = 10-10 lines in 2 locations

Command/GenerateCrudCommand.php 2 locations

@@ 225-234 (lines=10) @@
222
    /**
223
     * Tries to generate forms if they don't exist yet and if we need write operations on entities.
224
     */
225
    protected function generateSerializationConfig($bundle, $entity, $metadata, $forceOverwrite)
226
    {
227
        try {
228
            $this->getSerializationConfigGenerator($bundle, $entity)->generate($metadata[0], $forceOverwrite);
229
        } catch (\RuntimeException $e) {
230
            return false;
231
        }
232
233
        return true;
234
    }
235
236
    /**
237
     * Tries to generate forms if they don't exist yet and if we need write operations on entities.
@@ 239-248 (lines=10) @@
236
    /**
237
     * Tries to generate forms if they don't exist yet and if we need write operations on entities.
238
     */
239
    protected function generateForm($bundle, $entity, $metadata, $forceOverwrite)
240
    {
241
        try {
242
            $this->getFormGenerator($bundle, $entity, $metadata[0])->generate($forceOverwrite);
243
        } catch (\RuntimeException $e) {
244
            return false;
245
        }
246
247
        return true;
248
    }
249
250
    protected function generateManager($bundle, $entity, $forceOverwrite)
251
    {