Code Duplication    Length = 10-10 lines in 4 locations

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

@@ 1898-1907 (lines=10) @@
1895
				}
1896
			}
1897
		}
1898
		if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
1899
		{
1900
			if ($channel = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'channel'))
1901
			{
1902
				if (isset($channel[0]['child'][$namespace][$tag]))
1903
				{
1904
					return $channel[0]['child'][$namespace][$tag];
1905
				}
1906
			}
1907
		}
1908
		return null;
1909
	}
1910
@@ 1928-1937 (lines=10) @@
1925
	public function get_image_tags($namespace, $tag)
1926
	{
1927
		$type = $this->get_type();
1928
		if ($type & SIMPLEPIE_TYPE_RSS_10)
1929
		{
1930
			if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'image'))
1931
			{
1932
				if (isset($image[0]['child'][$namespace][$tag]))
1933
				{
1934
					return $image[0]['child'][$namespace][$tag];
1935
				}
1936
			}
1937
		}
1938
		if ($type & SIMPLEPIE_TYPE_RSS_090)
1939
		{
1940
			if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'image'))
@@ 1938-1947 (lines=10) @@
1935
				}
1936
			}
1937
		}
1938
		if ($type & SIMPLEPIE_TYPE_RSS_090)
1939
		{
1940
			if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'image'))
1941
			{
1942
				if (isset($image[0]['child'][$namespace][$tag]))
1943
				{
1944
					return $image[0]['child'][$namespace][$tag];
1945
				}
1946
			}
1947
		}
1948
		if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
1949
		{
1950
			if ($image = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'image'))
@@ 1948-1957 (lines=10) @@
1945
				}
1946
			}
1947
		}
1948
		if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
1949
		{
1950
			if ($image = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'image'))
1951
			{
1952
				if (isset($image[0]['child'][$namespace][$tag]))
1953
				{
1954
					return $image[0]['child'][$namespace][$tag];
1955
				}
1956
			}
1957
		}
1958
		return null;
1959
	}
1960