Code Duplication    Length = 5-5 lines in 4 locations

blocks/xoopstube_top.php 4 locations

@@ 170-174 (lines=5) @@
167
        }
168
        $videoload = array();
169
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
170
        if (!XOOPS_USE_MULTIBYTES) {
171
            if (strlen($myrow['title']) >= $options[2]) {
172
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
173
            }
174
        }
175
        $videoload['id']    = (int)$myrow['lid'];
176
        $videoload['cid']   = (int)$myrow['cid'];
177
        $videoload['title'] = $title;
@@ 263-267 (lines=5) @@
260
261
        $videoload = array();
262
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
263
        if (!XOOPS_USE_MULTIBYTES) {
264
            if (strlen($myrow['title']) >= $options[2]) {
265
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
266
            }
267
        }
268
        $videoload['id']    = (int)$myrow['lid'];
269
        $videoload['cid']   = (int)$myrow['cid'];
270
        $videoload['title'] = $title;
@@ 331-335 (lines=5) @@
328
        }
329
        $videorandom = array();
330
        $title       = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
331
        if (!XOOPS_USE_MULTIBYTES) {
332
            if (strlen($myrow['title']) >= $options[2]) {
333
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
334
            }
335
        }
336
        $videorandom['id']    = (int)$myrow['lid'];
337
        $videorandom['cid']   = (int)$myrow['cid'];
338
        $videorandom['title'] = $title;
@@ 397-401 (lines=5) @@
394
        $videorandomh            = array();
395
        $title                   = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
396
        $videorandomh['balloon'] = $myrow['title'];
397
        if (!XOOPS_USE_MULTIBYTES) {
398
            if (strlen($myrow['title']) >= $options[2]) {
399
                $title = substr($myrow['title'], 0, $options[2] - 1) . '...';
400
            }
401
        }
402
        $videorandomh['id']    = (int)$myrow['lid'];
403
        $videorandomh['cid']   = (int)$myrow['cid'];
404
        $videorandomh['title'] = $title;