Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 712-718 (lines=7) @@
709
     *
710
     * @return Form
711
     */
712
    public function fileEditForm()
713
    {
714
        // Get ID either from posted back value, or url parameter
715
        $request = $this->getRequest();
716
        $id = $request->param('ID') ?: $request->postVar('ID');
717
        return $this->getFileEditForm($id);
718
    }
719
720
    /**
721
     * The form is used to generate a form schema,
@@ 739-745 (lines=7) @@
736
     *
737
     * @return Form
738
     */
739
    public function fileInsertForm()
740
    {
741
        // Get ID either from posted back value, or url parameter
742
        $request = $this->getRequest();
743
        $id = $request->param('ID') ?: $request->postVar('ID');
744
        return $this->getFileInsertForm($id);
745
    }
746
747
    /**
748
     * Abstract method for generating a form for a file