Code Duplication    Length = 10-10 lines in 4 locations

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

@@ 993-1002 (lines=10) @@
990
                }
991
            }
992
        }
993
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
994
        {
995
            if ($channel = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'channel'))
996
            {
997
                if (isset($channel[0]['child'][$namespace][$tag]))
998
                {
999
                    return $channel[0]['child'][$namespace][$tag];
1000
                }
1001
            }
1002
        }
1003
        return null;
1004
    }
1005
    
@@ 1009-1018 (lines=10) @@
1006
    public function get_image_tags($namespace, $tag)
1007
    {
1008
        $type = $this->get_type();
1009
        if ($type & SIMPLEPIE_TYPE_RSS_10)
1010
        {
1011
            if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_10, 'image'))
1012
            {
1013
                if (isset($image[0]['child'][$namespace][$tag]))
1014
                {
1015
                    return $image[0]['child'][$namespace][$tag];
1016
                }
1017
            }
1018
        }
1019
        if ($type & SIMPLEPIE_TYPE_RSS_090)
1020
        {
1021
            if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'image'))
@@ 1019-1028 (lines=10) @@
1016
                }
1017
            }
1018
        }
1019
        if ($type & SIMPLEPIE_TYPE_RSS_090)
1020
        {
1021
            if ($image = $this->get_feed_tags(SIMPLEPIE_NAMESPACE_RSS_090, 'image'))
1022
            {
1023
                if (isset($image[0]['child'][$namespace][$tag]))
1024
                {
1025
                    return $image[0]['child'][$namespace][$tag];
1026
                }
1027
            }
1028
        }
1029
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
1030
        {
1031
            if ($image = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'image'))
@@ 1029-1038 (lines=10) @@
1026
                }
1027
            }
1028
        }
1029
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
1030
        {
1031
            if ($image = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'image'))
1032
            {
1033
                if (isset($image[0]['child'][$namespace][$tag]))
1034
                {
1035
                    return $image[0]['child'][$namespace][$tag];
1036
                }
1037
            }
1038
        }
1039
        return null;
1040
    }
1041