Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 779-785 (lines=7) @@
776
     *
777
     * @return Form
778
     */
779
    public function FileEditForm()
780
    {
781
        // Get ID either from posted back value, or url parameter
782
        $request = $this->getRequest();
783
        $id = $request->param('ID') ?: $request->postVar('ID');
784
        return $this->getFileEditForm($id);
785
    }
786
787
    /**
788
     * The form is used to generate a form schema,
@@ 825-831 (lines=7) @@
822
     *
823
     * @return Form
824
     */
825
    public function FileInsertForm()
826
    {
827
        // Get ID either from posted back value, or url parameter
828
        $request = $this->getRequest();
829
        $id = $request->param('ID') ?: $request->postVar('ID');
830
        return $this->getFileInsertForm($id);
831
    }
832
833
    /**
834
     * @param array $context