Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 133-135 (lines=3) @@
130
            $i = 0;
131
            foreach ($this->config['buttons'] as $button) {
132
                ++$i;
133
                if (isset($button['before'])) {
134
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add_before"] = $button['before'];
135
                }
136
                if (isset($button['add'])) {
137
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
138
                }
@@ 136-138 (lines=3) @@
133
                if (isset($button['before'])) {
134
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add_before"] = $button['before'];
135
                }
136
                if (isset($button['add'])) {
137
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
138
                }
139
                if (isset($button[''])) {
140
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = $button[''];
141
                }
@@ 139-141 (lines=3) @@
136
                if (isset($button['add'])) {
137
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
138
                }
139
                if (isset($button[''])) {
140
                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = $button[''];
141
                }
142
            }
143
            $configured[] = 'buttons';
144