Code Duplication    Length = 5-5 lines in 2 locations

blocks/xoopstube_top.php 2 locations

@@ 182-186 (lines=5) @@
179
        $videoload['id']    = (int)$myrow['lid'];
180
        $videoload['cid']   = (int)$myrow['cid'];
181
        $videoload['title'] = $title;
182
        if ($options[0] === 'date') {
183
            $videoload['date'] = formatTimestamp($myrow['date'], $xtubeModuleConfig['dateformat']);
184
        } elseif ('hits' === $options[0]) {
185
            $videoload['hits'] = $myrow['hits'];
186
        }
187
188
        $size               = array();
189
        $rate               = 425 / 350;
@@ 276-280 (lines=5) @@
273
        $videoload['id']    = (int)$myrow['lid'];
274
        $videoload['cid']   = (int)$myrow['cid'];
275
        $videoload['title'] = $title;
276
        if ('published' === $options[0]) {
277
            $videoload['date'] = XoopstubeUtility::xtubeGetTimestamp(formatTimestamp($myrow['published'], $options[3]));
278
        } elseif ('hits' === $options[0]) {
279
            $videoload['hits'] = $myrow['hits'];
280
        }
281
282
        $videoload['videothumb'] = xtubeGetVideoThumb($myrow['vidid'], $title, $myrow['vidsource'], $myrow['picurl'], $xtubeModuleConfig['videoimgdir'] . '/' . $myrow['screenshot'], $xtubeModuleConfig['shotwidth'], $xtubeModuleConfig['shotheight']);
283
        $videoload['dirname']    = $xtubeModule->getVar('dirname');