Code Duplication    Length = 8-8 lines in 2 locations

src/AppBundle/Controller/Admin/AdminDistrictController.php 1 location

@@ 37-44 (lines=8) @@
34
     * @Method("GET")
35
     * @ParamConverter("district", options={"mapping": {"slug": "slug"}})
36
     */
37
    public function districtShowAction(District $district, Request $request)
38
    {
39
        $deleteForm = $this->createDeleteForm($district);
40
        return $this->render('@App/admin/district/show_district.html.twig', array(
41
            'district'        => $district,
42
            'delete_form' => $deleteForm->createView(),
43
        ));
44
    }
45
46
    /**
47
     * @Route("/district/new", name="admin_district_new")

src/AppBundle/Controller/Admin/AdminEstateController.php 1 location

@@ 61-68 (lines=8) @@
58
     * @Method("GET")
59
     * @ParamConverter("estate", options={"mapping": {"slug": "slug"}})
60
     */
61
    public function estateShowAction(Estate $estate, Request $request)
62
    {
63
        $deleteForm = $this->createDeleteForm($estate);
64
        return $this->render('@App/admin/estate/show_estate.html.twig', array(
65
            'estate'        => $estate,
66
            'delete_form' => $deleteForm->createView(),
67
        ));
68
    }
69
70
    /**
71
     * @Route("/estate/new", name="admin_estate_new")