Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 190-195 (lines=6) @@
187
        }
188
189
        $configured = array_unique($configured);
190
        foreach ($this->config as $key => $val) {
191
            if (isset($this->setting[$key]) || in_array($key, $configured)) {
192
                continue;
193
            }
194
            $this->setting[$key] = $val;
195
        }
196
197
        if (!is_dir($xoops_root_path . $this->rootpath . "/themes/" . $this->setting["theme"] . '/docs/' . $this->setting["language"] . '/')) {
198
            $this->setting["docs_language"] = "en";

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

@@ 202-207 (lines=6) @@
199
        }
200
201
        $configured = array_unique($configured);
202
        foreach ($this->config as $key => $val) {
203
            if (isset($this->setting[$key]) || in_array($key, $configured)) {
204
                continue;
205
            }
206
            $this->setting[$key] = $val;
207
        }
208
209
        if (!is_dir(\XoopsBaseConfig::get('root-path') . $this->rootpath . "/themes/" . $this->setting["theme"] . '/docs/' . $this->setting["language"] . '/')) {
210
            $this->setting["docs_language"] = "en";