Code Duplication    Length = 5-5 lines in 2 locations

blocks/xoopstube_top.php 2 locations

@@ 191-195 (lines=5) @@
188
        $videoload['id']    = intval($myrow['lid']);
189
        $videoload['cid']   = intval($myrow['cid']);
190
        $videoload['title'] = $title;
191
        if ($options[0] == "date") {
192
            $videoload['date'] = formatTimestamp($myrow['date'], $xtubeModuleConfig['dateformat']);
193
        } elseif ($options[0] == "hits") {
194
            $videoload['hits'] = $myrow['hits'];
195
        }
196
197
        $size               = array();
198
        $rate               = 425 / 350;
@@ 305-309 (lines=5) @@
302
        $videoload['id']    = intval($myrow['lid']);
303
        $videoload['cid']   = intval($myrow['cid']);
304
        $videoload['title'] = $title;
305
        if ($options[0] == 'published') {
306
            $videoload['date'] = xtubeGetTimestamp(formatTimestamp($myrow['published'], $options[3]));
307
        } elseif ($options[0] == 'hits') {
308
            $videoload['hits'] = $myrow['hits'];
309
        }
310
311
        $videoload['videothumb'] = xtubeGetVideoThumb(
312
            $myrow['vidid'],