Code Duplication    Length = 15-15 lines in 3 locations

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

@@ 1520-1534 (lines=15) @@
1517
        }
1518
    }
1519
    
1520
    public function get_latitude()
1521
    {
1522
        if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
1523
        {
1524
            return (float) $return[0]['data'];
1525
        }
1526
        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))
1527
        {
1528
            return (float) $match[1];
1529
        }
1530
        else
1531
        {
1532
            return null;
1533
        }
1534
    }
1535
    
1536
    public function get_longitude()
1537
    {
@@ 8567-8581 (lines=15) @@
8564
        }
8565
    }
8566
    
8567
    public function get_latitude()
8568
    {
8569
        if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
8570
        {
8571
            return (float) $return[0]['data'];
8572
        }
8573
        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))
8574
        {
8575
            return (float) $match[1];
8576
        }
8577
        else
8578
        {
8579
            return null;
8580
        }
8581
    }
8582
    
8583
    public function get_longitude()
8584
    {
@@ 13100-13114 (lines=15) @@
13097
            return null;
13098
        }
13099
    }
13100
    public function get_latitude()
13101
    {
13102
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
13103
        {
13104
            return (float) $return[0]['data'];
13105
        }
13106
        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))
13107
        {
13108
            return (float) $match[1];
13109
        }
13110
        else
13111
        {
13112
            return null;
13113
        }
13114
    }
13115
    public function get_longitude()
13116
    {
13117
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))