Code Duplication    Length = 5-5 lines in 2 locations

rss.php 2 locations

@@ 63-67 (lines=5) @@
60
    $tpl->assign('channel_language', _LANGCODE);
61
    $tpl->assign('image_url', XOOPS_URL . '/assets/images/logo.gif');
62
    $dimention = getimagesize(XOOPS_ROOT_PATH . '/assets/images/logo.gif');
63
    if (empty($dimention[0])) {
64
        $width = 88;
65
    } else {
66
        $width = ($dimention[0] > 144) ? 144 : $dimention[0];
67
    }
68
    if (empty($dimention[1])) {
69
        $height = 31;
70
    } else {
@@ 68-72 (lines=5) @@
65
    } else {
66
        $width = ($dimention[0] > 144) ? 144 : $dimention[0];
67
    }
68
    if (empty($dimention[1])) {
69
        $height = 31;
70
    } else {
71
        $height = ($dimention[1] > 400) ? 400 : $dimention[1];
72
    }
73
    $tpl->assign('image_width', $width);
74
    $tpl->assign('image_height', $height);
75
    $start = 0;