Code Duplication    Length = 7-8 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 775-781 (lines=7) @@
772
     *
773
     * @return Form
774
     */
775
    public function FileEditForm()
776
    {
777
        // Get ID either from posted back value, or url parameter
778
        $request = $this->getRequest();
779
        $id = $request->param('ID') ?: $request->postVar('ID');
780
        return $this->getFileEditForm($id);
781
    }
782
783
    /**
784
     *
@@ 837-844 (lines=8) @@
834
     *
835
     * @return Form
836
     */
837
    public function FileHistoryForm()
838
    {
839
        $request = $this->getRequest();
840
        $id = $request->param('ID') ?: $request->postVar('ID');
841
        $form = $this->getFileHistoryForm($id);
842
843
        return $form;
844
    }
845
846
    /**
847
     * @param array $data