Code Duplication    Length = 7-7 lines in 4 locations

htdocs/xoops_lib/modules/protector/library/HTMLPurifier/HTMLDefinition.php 4 locations

@@ 224-230 (lines=7) @@
221
        $this->doctype = $this->manager->doctype;
222
223
        foreach ($this->manager->modules as $module) {
224
            foreach ($module->info_tag_transform as $k => $v) {
225
                if ($v === false) {
226
                    unset($this->info_tag_transform[$k]);
227
                } else {
228
                    $this->info_tag_transform[$k] = $v;
229
                }
230
            }
231
            foreach ($module->info_attr_transform_pre as $k => $v) {
232
                if ($v === false) {
233
                    unset($this->info_attr_transform_pre[$k]);
@@ 231-237 (lines=7) @@
228
                    $this->info_tag_transform[$k] = $v;
229
                }
230
            }
231
            foreach ($module->info_attr_transform_pre as $k => $v) {
232
                if ($v === false) {
233
                    unset($this->info_attr_transform_pre[$k]);
234
                } else {
235
                    $this->info_attr_transform_pre[$k] = $v;
236
                }
237
            }
238
            foreach ($module->info_attr_transform_post as $k => $v) {
239
                if ($v === false) {
240
                    unset($this->info_attr_transform_post[$k]);
@@ 238-244 (lines=7) @@
235
                    $this->info_attr_transform_pre[$k] = $v;
236
                }
237
            }
238
            foreach ($module->info_attr_transform_post as $k => $v) {
239
                if ($v === false) {
240
                    unset($this->info_attr_transform_post[$k]);
241
                } else {
242
                    $this->info_attr_transform_post[$k] = $v;
243
                }
244
            }
245
            foreach ($module->info_injector as $k => $v) {
246
                if ($v === false) {
247
                    unset($this->info_injector[$k]);
@@ 245-251 (lines=7) @@
242
                    $this->info_attr_transform_post[$k] = $v;
243
                }
244
            }
245
            foreach ($module->info_injector as $k => $v) {
246
                if ($v === false) {
247
                    unset($this->info_injector[$k]);
248
                } else {
249
                    $this->info_injector[$k] = $v;
250
                }
251
            }
252
        }
253
        $this->info = $this->manager->getElements();
254
        $this->info_content_sets = $this->manager->contentSets->lookup;