Code Duplication    Length = 8-8 lines in 5 locations

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

@@ 1706-1713 (lines=8) @@
1703
            else
1704
            {
1705
                $this->data['items'] = array();
1706
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'entry'))
1707
                {
1708
                    $keys = array_keys($items);
1709
                    foreach ($keys as $key)
1710
                    {
1711
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1712
                    }
1713
                }
1714
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'entry'))
1715
                {
1716
                    $keys = array_keys($items);
@@ 1714-1721 (lines=8) @@
1711
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1712
                    }
1713
                }
1714
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'entry'))
1715
                {
1716
                    $keys = array_keys($items);
1717
                    foreach ($keys as $key)
1718
                    {
1719
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1720
                    }
1721
                }
1722
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'item'))
1723
                {
1724
                    $keys = array_keys($items);
@@ 1722-1729 (lines=8) @@
1719
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1720
                    }
1721
                }
1722
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'item'))
1723
                {
1724
                    $keys = array_keys($items);
1725
                    foreach ($keys as $key)
1726
                    {
1727
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1728
                    }
1729
                }
1730
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'item'))
1731
                {
1732
                    $keys = array_keys($items);
@@ 1730-1737 (lines=8) @@
1727
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1728
                    }
1729
                }
1730
                if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'item'))
1731
                {
1732
                    $keys = array_keys($items);
1733
                    foreach ($keys as $key)
1734
                    {
1735
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1736
                    }
1737
                }
1738
                if ($items = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'item'))
1739
                {
1740
                    $keys = array_keys($items);
@@ 1738-1745 (lines=8) @@
1735
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1736
                    }
1737
                }
1738
                if ($items = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'item'))
1739
                {
1740
                    $keys = array_keys($items);
1741
                    foreach ($keys as $key)
1742
                    {
1743
                        $this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
1744
                    }
1745
                }
1746
            }
1747
        }
1748
        if (!empty($this->data['items']))