Code Duplication    Length = 19-19 lines in 2 locations

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

@@ 6556-6574 (lines=19) @@
6553
        }
6554
    }
6555
    
6556
    public function get_copyright()
6557
    {
6558
        if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'rights'))
6559
        {
6560
            return $this->sanitize($return[0]['data'], $this->registry->call('Misc', 'atom_10_construct_type', array($return[0]['attribs'])), $this->get_base($return[0]));
6561
        }
6562
        elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'rights'))
6563
        {
6564
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
6565
        }
6566
        elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'rights'))
6567
        {
6568
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
6569
        }
6570
        else
6571
        {
6572
            return null;
6573
        }
6574
    }
6575
    
6576
    public function get_date($date_format = 'j F Y, g:i a')
6577
    {
@@ 13134-13152 (lines=19) @@
13131
            return null;
13132
        }
13133
    }
13134
    public function get_image_url()
13135
    {
13136
        if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'image'))
13137
        {
13138
            return $this->sanitize($return[0]['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI);
13139
        }
13140
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'logo'))
13141
        {
13142
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
13143
        }
13144
        elseif ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'icon'))
13145
        {
13146
            return $this->sanitize($return[0]['data'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($return[0]));
13147
        }
13148
        else
13149
        {
13150
            return null;
13151
        }
13152
    }
13153
}
13154
class SimplePie_XML_Declaration_Parser
13155
{