Code Duplication    Length = 22-22 lines in 2 locations

src/RSSFeed/simplepie/simplepie_1.3.1.mini.php 2 locations

@@ 4131-4152 (lines=22) @@
4128
        $mime = explode('/', $type, 2);
4129
        $mime = $mime[0];
4130
        // Process values for 'auto'
4131
        if ($width === 'auto')
4132
        {
4133
            if ($mime === 'video')
4134
            {
4135
                if ($height === 'auto')
4136
                {
4137
                    $width = 480;
4138
                }
4139
                elseif ($widescreen)
4140
                {
4141
                    $width = round((intval($height)/9)*16);
4142
                }
4143
                else
4144
                {
4145
                    $width = round((intval($height)/3)*4);
4146
                }
4147
            }
4148
            else
4149
            {
4150
                $width = '100%';
4151
            }
4152
        }
4153
        if ($height === 'auto')
4154
        {
4155
            if ($mime === 'audio')
@@ 4159-4180 (lines=22) @@
4156
            {
4157
                $height = 0;
4158
            }
4159
            elseif ($mime === 'video')
4160
            {
4161
                if ($width === 'auto')
4162
                {
4163
                    if ($widescreen)
4164
                    {
4165
                        $height = 270;
4166
                    }
4167
                    else
4168
                    {
4169
                        $height = 360;
4170
                    }
4171
                }
4172
                elseif ($widescreen)
4173
                {
4174
                    $height = round((intval($width)/16)*9);
4175
                }
4176
                else
4177
                {
4178
                    $height = round((intval($width)/4)*3);
4179
                }
4180
            }
4181
            else
4182
            {
4183
                $height = 376;