Code Duplication    Length = 4-4 lines in 2 locations

edit.php 1 location

@@ 20-23 (lines=4) @@
17
    ${$getint} = Request::getInt($getint, 0, 'GET');
18
}
19
20
if (!$topic_id && !$post_id) {
21
    $redirect = empty($forum) ? 'index.php' : "viewforum.php?forum={$forum}";
22
    redirect_header($redirect, 2, _MD_NEWBB_ERRORTOPIC);
23
}
24
25
/** @var \NewbbForumHandler $forumHandler */
26
$forumHandler = xoops_getModuleHandler('forum', 'newbb');

reply.php 1 location

@@ 42-45 (lines=4) @@
39
$order    = Request::getInt('order', 0, 'GET');
40
$start    = Request::getInt('start', 0, 'GET');
41
42
if (!$topic_id && !$post_id) {
43
    $redirect = empty($forum) ? 'index.php' : "viewforum.php?forum={$forum}";
44
    redirect_header($redirect, 2, _MD_NEWBB_ERRORTOPIC);
45
}
46
47
/** @var NewbbForumHandler $forumHandler */
48
$forumHandler = xoops_getModuleHandler('forum', 'newbb');