Code Duplication    Length = 5-5 lines in 4 locations

blocks/xoopstube_top.php 4 locations

@@ 174-178 (lines=5) @@
171
        }
172
        $videoload = array();
173
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
174
        if (!XOOPS_USE_MULTIBYTES) {
175
            if (strlen($myrow['title']) >= $options[2]) {
176
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
177
            }
178
        }
179
        $videoload['id']    = (int)$myrow['lid'];
180
        $videoload['cid']   = (int)$myrow['cid'];
181
        $videoload['title'] = $title;
@@ 268-272 (lines=5) @@
265
266
        $videoload = array();
267
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
268
        if (!XOOPS_USE_MULTIBYTES) {
269
            if (strlen($myrow['title']) >= $options[2]) {
270
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
271
            }
272
        }
273
        $videoload['id']    = (int)$myrow['lid'];
274
        $videoload['cid']   = (int)$myrow['cid'];
275
        $videoload['title'] = $title;
@@ 335-339 (lines=5) @@
332
        }
333
        $videorandom = array();
334
        $title       = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
335
        if (!XOOPS_USE_MULTIBYTES) {
336
            if (strlen($myrow['title']) >= $options[2]) {
337
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
338
            }
339
        }
340
        $videorandom['id']    = (int)$myrow['lid'];
341
        $videorandom['cid']   = (int)$myrow['cid'];
342
        $videorandom['title'] = $title;
@@ 402-406 (lines=5) @@
399
        $videorandomh            = array();
400
        $title                   = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
401
        $videorandomh['balloon'] = $myrow['title'];
402
        if (!XOOPS_USE_MULTIBYTES) {
403
            if (strlen($myrow['title']) >= $options[2]) {
404
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
405
            }
406
        }
407
        $videorandomh['id']    = (int)$myrow['lid'];
408
        $videorandomh['cid']   = (int)$myrow['cid'];
409
        $videorandomh['title'] = $title;