Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 755-761 (lines=7) @@
752
     *
753
     * @return Form
754
     */
755
    public function fileEditForm()
756
    {
757
        // Get ID either from posted back value, or url parameter
758
        $request = $this->getRequest();
759
        $id = $request->param('ID') ?: $request->postVar('ID');
760
        return $this->getFileEditForm($id);
761
    }
762
763
    /**
764
     * The form is used to generate a form schema,
@@ 782-788 (lines=7) @@
779
     *
780
     * @return Form
781
     */
782
    public function fileInsertForm()
783
    {
784
        // Get ID either from posted back value, or url parameter
785
        $request = $this->getRequest();
786
        $id = $request->param('ID') ?: $request->postVar('ID');
787
        return $this->getFileInsertForm($id);
788
    }
789
790
    /**
791
     * Abstract method for generating a form for a file