Code Duplication    Length = 8-9 lines in 2 locations

tests/php/Forms/FormFactoryTest/EditFactory.php 2 locations

@@ 21-29 (lines=9) @@
18
        ControllerExtension::class
19
    ];
20
21
    protected function getFormFields(RequestHandler $controller = null, $name, $context = [])
22
    {
23
        $fields = new FieldList(
24
            new HiddenField('ID'),
25
            new TextField('Title')
26
        );
27
        $this->invokeWithExtensions('updateFormFields', $fields, $controller, $name, $context);
28
        return $fields;
29
    }
30
31
    protected function getFormActions(RequestHandler $controller = null, $name, $context = [])
32
    {
@@ 31-38 (lines=8) @@
28
        return $fields;
29
    }
30
31
    protected function getFormActions(RequestHandler $controller = null, $name, $context = [])
32
    {
33
        $actions = new FieldList(
34
            new FormAction('save', 'Save')
35
        );
36
        $this->invokeWithExtensions('updateFormActions', $actions, $controller, $name, $context);
37
        return $actions;
38
    }
39
}
40