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

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