Code Duplication    Length = 8-8 lines in 2 locations

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

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

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

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