Code Duplication    Length = 14-14 lines in 2 locations

src/AppBundle/Controller/Settings/Divers/FamilyLogController.php 1 location

@@ 110-123 (lines=14) @@
107
     * @Method("GET")
108
     * @Template()
109
     */
110
    public function editAction(FamilyLog $familylog)
111
    {
112
        $editForm = $this->createForm(new FamilyLogType(), $familylog, array(
113
            'action' => $this->generateUrl('admin_familylog_update', array('slug' => $familylog->getSlug())),
114
            'method' => 'PUT',
115
        ));
116
        $deleteForm = $this->createDeleteForm($familylog->getId(), 'admin_familylog_delete');
117
118
        return array(
119
            'familylog' => $familylog,
120
            'edit_form'   => $editForm->createView(),
121
            'delete_form' => $deleteForm->createView(),
122
        );
123
    }
124
125
    /**
126
     * Edits an existing FamilyLog entity.

src/AppBundle/Controller/Settings/Divers/SubFamilyLogController.php 1 location

@@ 112-125 (lines=14) @@
109
     * @Method("GET")
110
     * @Template()
111
     */
112
    public function editAction(SubFamilyLog $subfamilylog)
113
    {
114
        $editForm = $this->createForm(new SubFamilyLogType(), $subfamilylog, array(
115
            'action' => $this->generateUrl('admin_subfamilylog_update', array('slug' => $subfamilylog->getSlug())),
116
            'method' => 'PUT',
117
        ));
118
        $deleteForm = $this->createDeleteForm($subfamilylog->getId(), 'admin_subfamilylog_delete');
119
120
        return array(
121
            'subfamilylog' => $subfamilylog,
122
            'edit_form'   => $editForm->createView(),
123
            'delete_form' => $deleteForm->createView(),
124
        );
125
    }
126
127
    /**
128
     * Edits an existing SubFamilyLog entity.