Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 866-872 (lines=7) @@
863
     *
864
     * @return Form
865
     */
866
    public function fileEditForm()
867
    {
868
        // Get ID either from posted back value, or url parameter
869
        $request = $this->getRequest();
870
        $id = $request->param('ID') ?: $request->postVar('ID');
871
        return $this->getFileEditForm($id);
872
    }
873
874
    /**
875
     * The form is used to generate a form schema,
@@ 893-899 (lines=7) @@
890
     *
891
     * @return Form
892
     */
893
    public function fileInsertForm()
894
    {
895
        // Get ID either from posted back value, or url parameter
896
        $request = $this->getRequest();
897
        $id = $request->param('ID') ?: $request->postVar('ID');
898
        return $this->getFileInsertForm($id);
899
    }
900
901
    /**
902
     * Abstract method for generating a form for a file