Code Duplication    Length = 4-4 lines in 2 locations

class/BaseSmartObject.php 1 location

@@ 785-788 (lines=4) @@
782
        $br       = isset($this->vars['dobr']) ? $this->getVar('dobr') : true;
783
        $formatML = true;
784
785
        if ('default' === $form_editor) {
786
            global $xoopsModuleConfig;
787
            $form_editor = isset($xoopsModuleConfig['default_editor']) ? $xoopsModuleConfig['default_editor'] : 'textarea';
788
        }
789
790
        if ($editor) {
791
            if (defined('XOOPS_EDITOR_IS_HTML')

class/Form/SmartObjectForm.php 1 location

@@ 516-519 (lines=4) @@
513
        /**
514
         * If the editor is 'default', retreive the default editor of this module
515
         */
516
        if ('default' === $form_editor) {
517
            global $xoopsModuleConfig;
518
            $form_editor = isset($xoopsModuleConfig['default_editor']) ? $xoopsModuleConfig['default_editor'] : 'textarea';
519
        }
520
521
        $caption = $var['form_caption'];
522
        $name    = $key;