Code Duplication    Length = 3-3 lines in 4 locations

blocks/xoopstube_top.php 4 locations

@@ 175-177 (lines=3) @@
172
173
    $i = 0;
174
    while ($myrow = $xoopsDB->fetchArray($result)) {
175
        if (false == checkBlockGroups($myrow['cid']) || $myrow['cid'] == 0) {
176
            continue;
177
        }
178
        if (xtubeCheckBlockGroups($myrow['cid']) == false) {
179
            exit;
180
        }
@@ 287-289 (lines=3) @@
284
285
    while ($myrow = $xoopsDB->fetchArray($result)) {
286
287
        if (false == checkBlockGroups($myrow['cid']) || $myrow['cid'] == 0) {
288
            continue;
289
        }
290
291
        if (xtubeCheckBlockGroups($myrow['cid']) == false) {
292
            exit;
@@ 375-377 (lines=3) @@
372
373
    while ($myrow = $xoopsDB->fetchArray($result2)) {
374
375
        if (false == checkBlockGroups($myrow['cid']) || $myrow['cid'] == 0) {
376
            continue;
377
        }
378
        $videorandom = array();
379
        $title       = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
380
        if (!XOOPS_USE_MULTIBYTES) {
@@ 455-457 (lines=3) @@
452
453
    while ($myrow = $xoopsDB->fetchArray($result2)) {
454
455
        if (false == checkBlockGroups($myrow['cid']) || $myrow['cid'] == 0) {
456
            continue;
457
        }
458
        $videorandomh            = array();
459
        $title                   = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
460
        $videorandomh['balloon'] = $myrow['title'];