Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 111-118 (lines=8) @@
108
        return $this->redirectToRoute('admin_districts');
109
    }
110
111
    private function createDeleteForm(District $district)
112
    {
113
        return $this->createFormBuilder()
114
            ->setAction($this->generateUrl('admin_district_delete', array('slug' => $district->getSlug())))
115
            ->setMethod('DELETE')
116
            ->getForm()
117
            ;
118
    }
119
}
120

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

@@ 143-150 (lines=8) @@
140
        return $this->redirectToRoute('admin_estates');
141
    }
142
143
    private function createDeleteForm(Estate $estate)
144
    {
145
        return $this->createFormBuilder()
146
            ->setAction($this->generateUrl('admin_estate_delete', array('slug' => $estate->getSlug())))
147
            ->setMethod('DELETE')
148
            ->getForm()
149
            ;
150
    }
151
}
152