Code Duplication    Length = 19-19 lines in 3 locations

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

@@ 1536-1554 (lines=19) @@
1533
        }
1534
    }
1535
    
1536
    public function get_longitude()
1537
    {
1538
        if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
1539
        {
1540
            return (float) $return[0]['data'];
1541
        }
1542
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
1543
        {
1544
            return (float) $return[0]['data'];
1545
        }
1546
        elseif (($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
1547
        {
1548
            return (float) $match[2];
1549
        }
1550
        else
1551
        {
1552
            return null;
1553
        }
1554
    }
1555
    
1556
    public function get_image_title()
1557
    {
@@ 8583-8601 (lines=19) @@
8580
        }
8581
    }
8582
    
8583
    public function get_longitude()
8584
    {
8585
        if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
8586
        {
8587
            return (float) $return[0]['data'];
8588
        }
8589
        elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
8590
        {
8591
            return (float) $return[0]['data'];
8592
        }
8593
        elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
8594
        {
8595
            return (float) $match[2];
8596
        }
8597
        else
8598
        {
8599
            return null;
8600
        }
8601
    }
8602
    
8603
    public function get_source()
8604
    {
@@ 13115-13133 (lines=19) @@
13112
            return null;
13113
        }
13114
    }
13115
    public function get_longitude()
13116
    {
13117
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
13118
        {
13119
            return (float) $return[0]['data'];
13120
        }
13121
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
13122
        {
13123
            return (float) $return[0]['data'];
13124
        }
13125
        elseif (($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
13126
        {
13127
            return (float) $match[2];
13128
        }
13129
        else
13130
        {
13131
            return null;
13132
        }
13133
    }
13134
    public function get_image_url()
13135
    {
13136
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'image'))