Code Duplication    Length = 6-6 lines in 3 locations

class/oledrion_utils.php 3 locations

@@ 170-175 (lines=6) @@
167
168
        // Only for Xoops 2.0.x
169
        switch ($editor_option) {
170
            case 'fckeditor':
171
                if (is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {
172
                    require_once XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php';
173
                    $editor = new XoopsFormFckeditor($caption, $name, $value);
174
                }
175
                break;
176
177
            case 'htmlarea':
178
                if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) {
@@ 177-182 (lines=6) @@
174
                }
175
                break;
176
177
            case 'htmlarea':
178
                if (is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) {
179
                    require_once XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php';
180
                    $editor = new XoopsFormHtmlarea($caption, $name, $value);
181
                }
182
                break;
183
184
            case 'dhtmltextarea':
185
                $editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 10, 50, $supplemental);
@@ 206-211 (lines=6) @@
203
                }
204
                break;
205
206
            case 'koivi':
207
                if (is_readable(XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php')) {
208
                    require_once XOOPS_ROOT_PATH . '/class/wysiwyg/formwysiwygtextarea.php';
209
                    $editor = new XoopsFormWysiwygTextArea($caption, $name, $value, $width, $height, '');
210
                }
211
                break;
212
        }
213
214
        return $editor;