Code Duplication    Length = 7-7 lines in 2 locations

code/Controller/AssetAdmin.php 2 locations

@@ 529-535 (lines=7) @@
526
     *
527
     * @return Form
528
     */
529
    public function fileEditForm()
530
    {
531
        // Get ID either from posted back value, or url parameter
532
        $request = $this->getRequest();
533
        $id = $request->param('ID') ?: $request->postVar('ID');
534
        return $this->getFileEditForm($id);
535
    }
536
537
    /**
538
     * The form is used to generate a form schema,
@@ 556-562 (lines=7) @@
553
     *
554
     * @return Form
555
     */
556
    public function fileInsertForm()
557
    {
558
        // Get ID either from posted back value, or url parameter
559
        $request = $this->getRequest();
560
        $id = $request->param('ID') ?: $request->postVar('ID');
561
        return $this->getFileInsertForm($id);
562
    }
563
564
    /**
565
     * Abstract method for generating a form for a file