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

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