Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 2758-2772 (lines=15) @@
2755
	 *
2756
	 * @return int|float|null
2757
	 */
2758
	public function get_image_width()
2759
	{
2760
		if ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'width'))
2761
		{
2762
			return round($return[0]['data']);
2763
		}
2764
		elseif ($this->get_type() & SIMPLEPIE_TYPE_RSS_SYNDICATION && $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'url'))
2765
		{
2766
			return 88.0;
2767
		}
2768
		else
2769
		{
2770
			return null;
2771
		}
2772
	}
2773
2774
	/**
2775
	 * Get the feed logo's height
@@ 2784-2798 (lines=15) @@
2781
	 *
2782
	 * @return int|float|null
2783
	 */
2784
	public function get_image_height()
2785
	{
2786
		if ($return = $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'height'))
2787
		{
2788
			return round($return[0]['data']);
2789
		}
2790
		elseif ($this->get_type() & SIMPLEPIE_TYPE_RSS_SYNDICATION && $this->get_image_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'url'))
2791
		{
2792
			return 31.0;
2793
		}
2794
		else
2795
		{
2796
			return null;
2797
		}
2798
	}
2799
2800
	/**
2801
	 * Get the number of items in the feed