Code Duplication    Length = 5-5 lines in 2 locations

rss.php 2 locations

@@ 106-110 (lines=5) @@
103
    $rss->image_url         = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image');
104
105
    $dimension = @getimagesize($GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image')));
106
    if (empty($dimension[0])) {
107
        $width = 88;
108
    } else {
109
        $width = ($dimension[0] > 144) ? 144 : $dimension[0];
110
    }
111
    if (empty($dimension[1])) {
112
        $height = 31;
113
    } else {
@@ 111-115 (lines=5) @@
108
    } else {
109
        $width = ($dimension[0] > 144) ? 144 : $dimension[0];
110
    }
111
    if (empty($dimension[1])) {
112
        $height = 31;
113
    } else {
114
        $height = ($dimension[1] > 400) ? 400 : $dimension[1];
115
    }
116
    $rss->image_width  = $width;
117
    $rss->image_height = $height;
118