Code Duplication    Length = 9-9 lines in 2 locations

htdocs/modules/system/class/module.php 2 locations

@@ 1038-1046 (lines=9) @@
1035
                        SystemLocale::F_BLOCK_ID,
1036
                        "<strong>" . $block->getVar('bid') . "</strong>"
1037
                    ) . '</span>';
1038
                } else {
1039
                    $this->trace[]['sub'] = sprintf(
1040
                        SystemLocale::SF_BLOCK_DELETED,
1041
                        "<strong>" . $block->getVar('name') . "</strong>"
1042
                    ) . sprintf(
1043
                        SystemLocale::F_BLOCK_ID,
1044
                        "<strong>" . $block->getVar('bid') . "</strong>"
1045
                    );
1046
                }
1047
                if ($block->getVar('template') != '') {
1048
                    $templates = $tplfile_handler->find(null, 'block', $block->getVar('bid'));
1049
                    /* @var $template XoopsTplFile */
@@ 1059-1067 (lines=9) @@
1056
                                SystemLocale::F_TEMPLATE_ID,
1057
                                "<strong>" . $template->getVar('tpl_id') . "</strong>"
1058
                            ) . '</span>';
1059
                        } else {
1060
                            $this->trace[]['sub'] = sprintf(
1061
                                SystemLocale::SF_BLOCK_TEMPLATE_DELETED,
1062
                                "<strong>" . $template->getVar('tpl_file') . "</strong>"
1063
                            ) . sprintf(
1064
                                SystemLocale::F_TEMPLATE_ID,
1065
                                "<strong>" . $template->getVar('tpl_id') . "</strong>"
1066
                            );
1067
                        }
1068
                    }
1069
                    unset($templates);
1070
                }