Code Duplication    Length = 5-5 lines in 4 locations

blocks/xoopstube_top.php 4 locations

@@ 183-187 (lines=5) @@
180
        }
181
        $videoload = array();
182
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow["title"]));
183
        if (!XOOPS_USE_MULTIBYTES) {
184
            if (strlen($myrow['title']) >= $options[2]) {
185
                $title = substr($myrow['title'], 0, ($options[2] - 1)) . "...";
186
            }
187
        }
188
        $videoload['id']    = intval($myrow['lid']);
189
        $videoload['cid']   = intval($myrow['cid']);
190
        $videoload['title'] = $title;
@@ 297-301 (lines=5) @@
294
295
        $videoload = array();
296
        $title     = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
297
        if (!XOOPS_USE_MULTIBYTES) {
298
            if (strlen($myrow['title']) >= $options[2]) {
299
                $title = substr($myrow['title'], 0, ($options[2] - 1)) . '...';
300
            }
301
        }
302
        $videoload['id']    = intval($myrow['lid']);
303
        $videoload['cid']   = intval($myrow['cid']);
304
        $videoload['title'] = $title;
@@ 380-384 (lines=5) @@
377
        }
378
        $videorandom = array();
379
        $title       = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
380
        if (!XOOPS_USE_MULTIBYTES) {
381
            if (strlen($myrow['title']) >= $options[2]) {
382
                $title = substr($myrow['title'], 0, ($options[2] - 1)) . '...';
383
            }
384
        }
385
        $videorandom['id']    = intval($myrow['lid']);
386
        $videorandom['cid']   = intval($myrow['cid']);
387
        $videorandom['title'] = $title;
@@ 461-465 (lines=5) @@
458
        $videorandomh            = array();
459
        $title                   = $xtubemyts->htmlSpecialChars($xtubemyts->stripSlashesGPC($myrow['title']));
460
        $videorandomh['balloon'] = $myrow['title'];
461
        if (!XOOPS_USE_MULTIBYTES) {
462
            if (strlen($myrow['title']) >= $options[2]) {
463
                $title = substr($myrow['title'], 0, ($options[2] - 1)) . '...';
464
            }
465
        }
466
        $videorandomh['id']    = intval($myrow['lid']);
467
        $videorandomh['cid']   = intval($myrow['cid']);
468
        $videorandomh['title'] = $title;