Code Duplication    Length = 5-5 lines in 2 locations

blocks/xoopstube_top.php 2 locations

@@ 178-182 (lines=5) @@
175
        $videoload['id']    = (int)$myrow['lid'];
176
        $videoload['cid']   = (int)$myrow['cid'];
177
        $videoload['title'] = $title;
178
        if ($options[0] == 'date') {
179
            $videoload['date'] = formatTimestamp($myrow['date'], $xtubeModuleConfig['dateformat']);
180
        } elseif ('hits' === $options[0]) {
181
            $videoload['hits'] = $myrow['hits'];
182
        }
183
184
        $size               = array();
185
        $rate               = 425 / 350;
@@ 271-275 (lines=5) @@
268
        $videoload['id']    = (int)$myrow['lid'];
269
        $videoload['cid']   = (int)$myrow['cid'];
270
        $videoload['title'] = $title;
271
        if ('published' === $options[0]) {
272
            $videoload['date'] = XoopstubeUtilities::xtubeGetTimestamp(formatTimestamp($myrow['published'], $options[3]));
273
        } elseif ('hits' === $options[0]) {
274
            $videoload['hits'] = $myrow['hits'];
275
        }
276
277
        $videoload['videothumb'] =
278
            xtubeGetVideoThumb($myrow['vidid'], $title, $myrow['vidsource'], $myrow['picurl'], $xtubeModuleConfig['videoimgdir'] . '/' . $myrow['screenshot'], $xtubeModuleConfig['shotwidth'],