Code Duplication    Length = 17-17 lines in 2 locations

htdocs/modules/extgallery/include/functions.php 1 location

@@ 67-83 (lines=17) @@
64
 *
65
 * @return bool|XoopsFormEditor
66
 */
67
function gal_getWysiwygForm($caption, $name, $value, $rows, $cols, $width, $height, $supplemental)
68
{
69
    $editor_option            = strtolower(gal_getmoduleoption('form_options'));
70
    $editor                   = false;
71
    $editor_configs           = array();
72
    $editor_configs['name']   = $name;
73
    $editor_configs['value']  = $value;
74
    $editor_configs['rows']   = $rows;
75
    $editor_configs['cols']   = $cols;
76
    $editor_configs['width']  = $width;
77
    $editor_configs['height'] = $height;
78
    $editor_configs['editor'] = $editor_option;
79
80
    $editor = new XoopsFormEditor($caption, $name, $editor_configs);
81
82
    return $editor;
83
}
84

htdocs/modules/extgallery/class/utility.php 1 location

@@ 190-206 (lines=17) @@
187
     *
188
     * @return bool|XoopsFormEditor
189
     */
190
    public static function getWysiwygForm($caption, $name, $value, $rows, $cols, $width, $height, $supplemental)
191
    {
192
        $editor_option            = strtolower(static::getModuleOption('form_options'));
193
        $editor                   = false;
194
        $editor_configs           = array();
195
        $editor_configs['name']   = $name;
196
        $editor_configs['value']  = $value;
197
        $editor_configs['rows']   = $rows;
198
        $editor_configs['cols']   = $cols;
199
        $editor_configs['width']  = $width;
200
        $editor_configs['height'] = $height;
201
        $editor_configs['editor'] = $editor_option;
202
203
        $editor = new XoopsFormEditor($caption, $name, $editor_configs);
204
205
        return $editor;
206
    }
207
}
208