Code Duplication    Length = 7-8 lines in 3 locations

code/Controller/AssetAdmin.php 3 locations

@@ 780-786 (lines=7) @@
777
     *
778
     * @return Form
779
     */
780
    public function FileEditForm()
781
    {
782
        // Get ID either from posted back value, or url parameter
783
        $request = $this->getRequest();
784
        $id = $request->param('ID') ?: $request->postVar('ID');
785
        return $this->getFileEditForm($id);
786
    }
787
    
788
    /**
789
     * The form is used to generate a form schema,
@@ 826-832 (lines=7) @@
823
     *
824
     * @return Form
825
     */
826
    public function FileInsertForm()
827
    {
828
        // Get ID either from posted back value, or url parameter
829
        $request = $this->getRequest();
830
        $id = $request->param('ID') ?: $request->postVar('ID');
831
        return $this->getFileInsertForm($id);
832
    }
833
834
    /**
835
     *
@@ 888-895 (lines=8) @@
885
     *
886
     * @return Form
887
     */
888
    public function FileHistoryForm()
889
    {
890
        $request = $this->getRequest();
891
        $id = $request->param('ID') ?: $request->postVar('ID');
892
        $form = $this->getFileHistoryForm($id);
893
894
        return $form;
895
    }
896
897
    /**
898
     * @param array $data