Code Duplication    Length = 3-3 lines in 3 locations

htdocs/class/xoopseditor/tinymce/tinymce.php 3 locations

@@ 123-125 (lines=3) @@
120
            $i = 0;
121
            foreach ($this->config['buttons'] as $button) {
122
                ++$i;
123
                if (isset($button['before'])) {
124
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add_before"] = $button['before'];
125
                }
126
                if (isset($button['add'])) {
127
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
128
                }
@@ 126-128 (lines=3) @@
123
                if (isset($button['before'])) {
124
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add_before"] = $button['before'];
125
                }
126
                if (isset($button['add'])) {
127
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
128
                }
129
                if (isset($button[''])) {
130
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = $button[''];
131
                }
@@ 129-131 (lines=3) @@
126
                if (isset($button['add'])) {
127
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
128
                }
129
                if (isset($button[''])) {
130
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = $button[''];
131
                }
132
            }
133
            $configured[] = 'buttons';
134