Code Duplication    Length = 8-8 lines in 2 locations

code/model/FormFieldExplanation.php 2 locations

@@ 46-53 (lines=8) @@
43
        "Title" => "Title"
44
    );
45
46
    public function getCMSFields()
47
    {
48
        $fields = parent::getCMSFields();
49
        $fields->removeByName("ParentID");
50
        $fields->removeByName("Name");
51
        $fields->replaceField("Title", new LiteralField("Title", "<h3>Edit the details for ".$this->Title."</h3>"));
52
        return $fields;
53
    }
54
55
    public function getFrontEndFields()
56
    {
@@ 55-62 (lines=8) @@
52
        return $fields;
53
    }
54
55
    public function getFrontEndFields()
56
    {
57
        $fields = parent::getFrontEndFields();
58
        $fields->removeByName("ParentID");
59
        $fields->removeByName("Name");
60
        $fields->replaceField("Title", new LiteralField("Title", "<h3>Edit the details for ".$this->Title."</h3>"));
61
        return $fields;
62
    }
63
64
    public static $singular_name = "Form Field Explanation";
65