Code Duplication    Length = 3-3 lines in 2 locations

print.php 1 location

@@ 40-42 (lines=3) @@
37
    //get entry object
38
    $entrydataHandler = xoops_getModuleHandler('entryget', $moduleDirName);
39
    $_entryob         = $entrydataHandler->getArticleOnePermcheck($articleID, true, true);
40
    if (!is_object($_entryob)) {
41
        redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/index.php', 1, 'Not Found');
42
    }
43
    //-------------------------------------
44
    $articles = $_entryob->toArray();
45
    //get category object

article.php 1 location

@@ 69-71 (lines=3) @@
66
} else {
67
    //get entry object
68
    $_entryob = $entrydataHandler->getArticleOnePermcheck($articleID, true, true);
69
    if (!is_object($_entryob)) {
70
        redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/index.php', 1, 'Not Found');
71
    }
72
}
73
//-------------------------------------
74
$articles = $_entryob->toArray();