Code Duplication    Length = 8-10 lines in 2 locations

Tests/Functionnal/src/Acme/AppBundle/Controller/JediController.php 1 location

@@ 241-250 (lines=10) @@
238
     *
239
     * @return \Symfony\Component\Form\Form The form
240
     */
241
    private function createDeleteForm($id)
242
    {
243
        return $this->createFormBuilder(null, [
244
                'translation_domain' => 'victoire',
245
            ])
246
            ->setAction($this->generateUrl('acme_app_jedi_delete', ['id' => $id]))
247
            ->setMethod('DELETE')
248
            ->add('submit', 'submit', ['label' => 'acme.app.jedi.form.button.delete'])
249
            ->getForm();
250
    }
251
}
252

Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php 1 location

@@ 348-355 (lines=8) @@
345
     *
346
     * @return \Symfony\Component\Form\Form The form
347
     */
348
    private function createDeleteForm($id)
349
    {
350
        return $this->createFormBuilder()
351
            ->setAction($this->generateUrl('victoire_business_template_delete', ['id' => $id]))
352
            ->setMethod('DELETE')
353
            ->add('submit', 'submit', ['label' => 'Delete'])
354
            ->getForm();
355
    }
356
357
    /**
358
     * List the entities that matches the query of the BusinessTemplate.