Code Duplication    Length = 7-8 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

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