Code Duplication    Length = 3-3 lines in 4 locations

blocks/xoopstube_top.php 4 locations

@@ 162-164 (lines=3) @@
159
160
    $i = 0;
161
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
162
        if (false === checkBlockGroups($myrow['cid']) || $myrow['cid'] == 0) {
163
            continue;
164
        }
165
        if (false === xtubeCheckBlockGroups($myrow['cid'])) {
166
            exit;
167
        }
@@ 253-255 (lines=3) @@
250
    include_once XOOPS_ROOT_PATH . '/modules/' . $xtubeModule->getVar('dirname') . '/class/utilities.php';
251
252
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
253
        if (false === checkBlockGroups($myrow['cid']) || 0 == $myrow['cid']) {
254
            continue;
255
        }
256
257
        if (false === xtubeCheckBlockGroups($myrow['cid'])) {
258
            exit;
@@ 326-328 (lines=3) @@
323
    include_once XOOPS_ROOT_PATH . '/modules/' . $xtubeModule->getVar('dirname') . '/class/utilities.php';
324
325
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result2))) {
326
        if (false === checkBlockGroups($myrow['cid']) || 0 == $myrow['cid']) {
327
            continue;
328
        }
329
        $videorandom = array();
330
        $title       = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
331
        if (!XOOPS_USE_MULTIBYTES) {
@@ 391-393 (lines=3) @@
388
    include_once XOOPS_ROOT_PATH . '/modules/' . $xtubeModule->getVar('dirname') . '/class/utilities.php';
389
390
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result2))) {
391
        if (false === checkBlockGroups($myrow['cid']) || 0 == $myrow['cid']) {
392
            continue;
393
        }
394
        $videorandomh            = array();
395
        $title                   = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
396
        $videorandomh['balloon'] = $myrow['title'];