Code Duplication    Length = 5-5 lines in 2 locations

htdocs/class/xoopsform/formdhtmltextarea.php 2 locations

@@ 138-142 (lines=5) @@
135
     */
136
    public function render()
137
    {
138
        if ($this->htmlEditor && is_object($this->htmlEditor)) {
139
            if (!isset($this->htmlEditor->isEnabled) || $this->htmlEditor->isEnabled) {
140
                return $this->htmlEditor->render();
141
            }
142
        }
143
144
        return XoopsFormRenderer::getInstance()->get()->renderFormDhtmlTextArea($this);
145
    }
@@ 154-158 (lines=5) @@
151
     */
152
    public function renderValidationJS()
153
    {
154
        if ($this->htmlEditor && is_object($this->htmlEditor) && method_exists($this->htmlEditor, 'renderValidationJS')) {
155
            if (!isset($this->htmlEditor->isEnabled) || $this->htmlEditor->isEnabled) {
156
                return $this->htmlEditor->renderValidationJS();
157
            }
158
        }
159
160
        return parent::renderValidationJS();
161
    }