Code Duplication    Length = 8-8 lines in 5 locations

src/wp-includes/class-simplepie.php 5 locations

@@ 2872-2879 (lines=8) @@
2869
			else
2870
			{
2871
				$this->data['items'] = array();
2872
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'entry'))
2873
				{
2874
					$keys = array_keys($items);
2875
					foreach ($keys as $key)
2876
					{
2877
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2878
					}
2879
				}
2880
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'entry'))
2881
				{
2882
					$keys = array_keys($items);
@@ 2880-2887 (lines=8) @@
2877
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2878
					}
2879
				}
2880
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'entry'))
2881
				{
2882
					$keys = array_keys($items);
2883
					foreach ($keys as $key)
2884
					{
2885
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2886
					}
2887
				}
2888
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'item'))
2889
				{
2890
					$keys = array_keys($items);
@@ 2888-2895 (lines=8) @@
2885
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2886
					}
2887
				}
2888
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'item'))
2889
				{
2890
					$keys = array_keys($items);
2891
					foreach ($keys as $key)
2892
					{
2893
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2894
					}
2895
				}
2896
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'item'))
2897
				{
2898
					$keys = array_keys($items);
@@ 2896-2903 (lines=8) @@
2893
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2894
					}
2895
				}
2896
				if ($items = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'item'))
2897
				{
2898
					$keys = array_keys($items);
2899
					foreach ($keys as $key)
2900
					{
2901
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2902
					}
2903
				}
2904
				if ($items = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'item'))
2905
				{
2906
					$keys = array_keys($items);
@@ 2904-2911 (lines=8) @@
2901
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2902
					}
2903
				}
2904
				if ($items = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'item'))
2905
				{
2906
					$keys = array_keys($items);
2907
					foreach ($keys as $key)
2908
					{
2909
						$this->data['items'][] = $this->registry->create('Item', array($this, $items[$key]));
2910
					}
2911
				}
2912
			}
2913
		}
2914