Code Duplication    Length = 3-3 lines in 2 locations

blocks/xoopstube_top.php 2 locations

@@ 388-390 (lines=3) @@
385
        $videorandom['id']    = intval($myrow['lid']);
386
        $videorandom['cid']   = intval($myrow['cid']);
387
        $videorandom['title'] = $title;
388
        if (isset($options[3])) {
389
            $videorandom['date'] = xtubeGetTimestamp(formatTimestamp($myrow['published'], $options[3]));
390
        }
391
        $videorandom['videothumb'] = xtubeGetVideoThumb(
392
            $myrow['vidid'],
393
            $myrow['title'],
@@ 469-471 (lines=3) @@
466
        $videorandomh['id']    = intval($myrow['lid']);
467
        $videorandomh['cid']   = intval($myrow['cid']);
468
        $videorandomh['title'] = $title;
469
        if (isset($options[3])) {
470
            $videorandomh['date'] = xtubeGetTimestamp(formatTimestamp($myrow['published'], $options[3]));
471
        }
472
        include_once XOOPS_ROOT_PATH . '/modules/' . $xtubeModule->getVar('dirname') . '/include/video.php';
473
        $videorandomh['videothumb'] = xtubeGetVideoThumb(
474
            $myrow['vidid'],