Code Duplication    Length = 27-27 lines in 2 locations

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

@@ 1456-1482 (lines=27) @@
1453
        }
1454
    }
1455
    
1456
    public function get_copyright()
1457
    {
1458
        if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'rights'))
1459
        {
1460
            return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
1461
        }
1462
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'copyright'))
1463
        {
1464
            return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
1465
        }
1466
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'copyright'))
1467
        {
1468
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1469
        }
1470
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
1471
        {
1472
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1473
        }
1474
        elseif ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
1475
        {
1476
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
1477
        }
1478
        else
1479
        {
1480
            return null;
1481
        }
1482
    }
1483
    
1484
    public function get_language()
1485
    {
@@ 13050-13076 (lines=27) @@
13047
            return null;
13048
        }
13049
    }
13050
    public function get_copyright()
13051
    {
13052
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'rights'))
13053
        {
13054
            return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
13055
        }
13056
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'copyright'))
13057
        {
13058
            return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_03_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
13059
        }
13060
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'copyright'))
13061
        {
13062
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
13063
        }
13064
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
13065
        {
13066
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
13067
        }
13068
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
13069
        {
13070
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
13071
        }
13072
        else
13073
        {
13074
            return null;
13075
        }
13076
    }
13077
    public function get_language()
13078
    {
13079
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'language'))