Code Duplication    Length = 12-13 lines in 2 locations

code/Model/EditableFormField/EditableFieldGroup.php 1 location

@@ 84-96 (lines=13) @@
81
        return $field;
82
    }
83
84
    protected function updateFormField($field)
85
    {
86
        // set the right title on this field
87
        if ($this->RightTitle) {
88
            // Since this field expects raw html, safely escape the user data prior
89
            $field->setRightTitle(Convert::raw2xml($this->RightTitle));
90
        }
91
92
        // if this field has an extra class
93
        if ($this->ExtraClass) {
94
            $field->addExtraClass($this->ExtraClass);
95
        }
96
    }
97
}
98

code/Model/EditableFormField/EditableFormHeading.php 1 location

@@ 79-90 (lines=12) @@
76
        return $labelField;
77
    }
78
79
    protected function updateFormField($field)
80
    {
81
        // set the right title on this field
82
        if ($this->RightTitle) {
83
            // Since this field expects raw html, safely escape the user data prior
84
            $field->setRightTitle(Convert::raw2xml($this->RightTitle));
85
        }
86
        // if this field has an extra class
87
        if ($this->ExtraClass) {
88
            $field->addExtraClass($this->ExtraClass);
89
        }
90
    }
91
92
    public function showInReports()
93
    {