Code Duplication    Length = 3-3 lines in 2 locations

modules/tools/admin/blockscall.php 1 location

@@ 233-235 (lines=3) @@
230
    case 'delete':
231
        $blocksCallObj = $blocksCallHandler->get($_REQUEST['bid']);
232
        if (Request::hasVar('ok', 'REQUEST') && 1 == $_REQUEST['ok']) {
233
            if (!$GLOBALS['xoopsSecurity']->check()) {
234
                redirect_header('blockscall.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
235
            }
236
            if ($blocksCallHandler->delete($blocksCallObj)) {
237
                redirect_header('blockscall.php', 3, _AM_TOOLS_BC_DELETEDSUCCESS);
238
            } else {

modules/tools/testdata/index.php 1 location

@@ 43-45 (lines=3) @@
40
switch ($op) {
41
    case 'load':
42
        if (Request::hasVar('ok', 'REQUEST') && 1 === Request::getInt('ok', 0)) {
43
            if (!$GLOBALS['xoopsSecurity']->check()) {
44
                redirect_header($helper->url('admin/index.php'), 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
45
            }
46
            loadSampleData();
47
        } else {
48
            xoops_cp_header();