Code Duplication    Length = 12-13 lines in 2 locations

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
    {

code/Model/EditableFormField/EditableFieldGroup.php 1 location

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