Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 3599-3604 (lines=6) @@
3596
        $this->title = $title;
3597
        $this->type = $type;
3598
        $this->width = $width;
3599
        if (class_exists('idna_convert'))
3600
        {
3601
            $idn = new idna_convert();
3602
            $parsed = SimplePie_Misc::parse_url($link);
3603
            $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']);
3604
        }
3605
        $this->handler = $this->get_handler(); // Needs to load last
3606
    }
3607
    
@@ 4431-4436 (lines=6) @@
4428
    var $method = SIMPLEPIE_FILE_SOURCE_NONE;
4429
    public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false)
4430
    {
4431
        if (class_exists('idna_convert'))
4432
        {
4433
            $idn = new idna_convert();
4434
            $parsed = SimplePie_Misc::parse_url($url);
4435
            $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']);
4436
        }
4437
        $this->url = $url;
4438
        $this->useragent = $useragent;
4439
        if (preg_match('/^http(s)?:\/\//i', $url))