Code Duplication    Length = 7-8 lines in 5 locations

src/Badger/Bundle/GameBundle/Controller/AdventureController.php 1 location

@@ 107-113 (lines=7) @@
104
     *
105
     * @return Form The form
106
     */
107
    private function createDeleteForm(Adventure $adventure)
108
    {
109
        return $this->createFormBuilder()
110
            ->setAction($this->generateUrl('admin_adventure_delete', ['id' => $adventure->getId()]))
111
            ->setMethod('DELETE')
112
            ->getForm();
113
    }
114
}
115

src/Badger/Bundle/GameBundle/Controller/BadgeController.php 1 location

@@ 145-152 (lines=8) @@
142
     *
143
     * @return Form The form
144
     */
145
    private function createDeleteForm(BadgeInterface $badge)
146
    {
147
        return $this->createFormBuilder()
148
            ->setAction($this->generateUrl('admin_badge_delete', ['id' => $badge->getId()]))
149
            ->setMethod('DELETE')
150
            ->getForm()
151
        ;
152
    }
153
}
154

src/Badger/Bundle/GameBundle/Controller/QuestController.php 1 location

@@ 136-143 (lines=8) @@
133
     *
134
     * @return Form The form
135
     */
136
    private function createDeleteForm(QuestInterface $quest)
137
    {
138
        return $this->createFormBuilder()
139
            ->setAction($this->generateUrl('admin_quest_delete', ['id' => $quest->getId()]))
140
            ->setMethod('DELETE')
141
            ->getForm()
142
        ;
143
    }
144
}
145

src/Badger/Bundle/GameBundle/Controller/TagController.php 1 location

@@ 133-140 (lines=8) @@
130
     *
131
     * @return Form The form
132
     */
133
    private function createDeleteForm(Tag $tag)
134
    {
135
        return $this->createFormBuilder()
136
            ->setAction($this->generateUrl('admin_tag_delete', ['id' => $tag->getId()]))
137
            ->setMethod('DELETE')
138
            ->getForm()
139
        ;
140
    }
141
}
142

src/Badger/Bundle/UserBundle/Controller/UserController.php 1 location

@@ 109-116 (lines=8) @@
106
     *
107
     * @return Form The form
108
     */
109
    private function createDeleteForm(User $user)
110
    {
111
        return $this->createFormBuilder()
112
            ->setAction($this->generateUrl('admin_user_delete', ['id' => $user->getId()]))
113
            ->setMethod('DELETE')
114
            ->getForm()
115
        ;
116
    }
117
}
118