Code Duplication    Length = 11-11 lines in 2 locations

htdocs/class/xoopseditor/tinymce/tinymce.php 1 location

@@ 295-305 (lines=11) @@
292
        $ret .= "script_url : '" . $xoops_url . $this->rootpath . "/tiny_mce.js',\n";
293
294
        // set options - start
295
        foreach ($this->setting as $key => $val) {
296
            $ret .= $key . ":";
297
            if ($val === true) {
298
                $ret.= "true,";
299
            } elseif ($val === false) {
300
                $ret .= "false,";
301
            } else {
302
                $ret .= "'{$val}',";
303
            }
304
            $ret .= "\n";
305
        }
306
307
        // set options - end
308
        $ret .= "tinymceload: true\n";

htdocs/class/xoopseditor/tinymce4/tinymce.php 1 location

@@ 315-325 (lines=11) @@
312
                tinyMCE.init({
313
            ';
314
315
        foreach ($this->setting as $key => $val) {
316
            $ret .= $key . ":";
317
            if ($val === true) {
318
                $ret.= "true,";
319
            } elseif ($val === false) {
320
                $ret .= "false,";
321
            } else {
322
                $ret .= "'{$val}',";
323
            }
324
            $ret .= "\n";
325
        }
326
327
        //	 Ajout alain01 tinymce v4
328