Code Duplication    Length = 4-4 lines in 2 locations

instr.php 1 location

@@ 43-46 (lines=4) @@
40
41
// Права на просмотр инструкции
42
$categories = InstructionUtility::getItemIds();
43
if (!in_array($objInsinstr->getVar('cid'), $categories)) {
44
    redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/', 3, _NOPERM);
45
    exit();
46
}
47
48
// Массив данных об инструкции
49
$instrs = [];

page.php 1 location

@@ 61-64 (lines=4) @@
58
59
// Права на просмотр инструкции
60
$categories = InstructionUtility::getItemIds();
61
if (!in_array($objInsinstr->getVar('cid'), $categories)) {
62
    redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/', 3, _NOPERM);
63
    exit();
64
}
65
66
// Массив данных о странице
67
$pages = [];