Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 787-793 (lines=7) @@
784
     *
785
     * @return Form
786
     */
787
    public function fileEditForm()
788
    {
789
        // Get ID either from posted back value, or url parameter
790
        $request = $this->getRequest();
791
        $id = $request->param('ID') ?: $request->postVar('ID');
792
        return $this->getFileEditForm($id);
793
    }
794
795
    /**
796
     * The form is used to generate a form schema,
@@ 814-820 (lines=7) @@
811
     *
812
     * @return Form
813
     */
814
    public function fileInsertForm()
815
    {
816
        // Get ID either from posted back value, or url parameter
817
        $request = $this->getRequest();
818
        $id = $request->param('ID') ?: $request->postVar('ID');
819
        return $this->getFileInsertForm($id);
820
    }
821
822
    /**
823
     * Abstract method for generating a form for a file