Code Duplication    Length = 7-7 lines in 4 locations

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

@@ 932-938 (lines=7) @@
929
    public function get_feed_tags($namespace, $tag)
930
    {
931
        $type = $this->get_type();
932
        if ($type & SIMPLEPIE_TYPE_ATOM_10)
933
        {
934
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['feed'][0]['child'][$namespace][$tag]))
935
            {
936
                return $this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['feed'][0]['child'][$namespace][$tag];
937
            }
938
        }
939
        if ($type & SIMPLEPIE_TYPE_ATOM_03)
940
        {
941
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0]['child'][$namespace][$tag]))
@@ 939-945 (lines=7) @@
936
                return $this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['feed'][0]['child'][$namespace][$tag];
937
            }
938
        }
939
        if ($type & SIMPLEPIE_TYPE_ATOM_03)
940
        {
941
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0]['child'][$namespace][$tag]))
942
            {
943
                return $this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0]['child'][$namespace][$tag];
944
            }
945
        }
946
        if ($type & SIMPLEPIE_TYPE_RSS_RDF)
947
        {
948
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0]['child'][$namespace][$tag]))
@@ 946-952 (lines=7) @@
943
                return $this->data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0]['child'][$namespace][$tag];
944
            }
945
        }
946
        if ($type & SIMPLEPIE_TYPE_RSS_RDF)
947
        {
948
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0]['child'][$namespace][$tag]))
949
            {
950
                return $this->data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0]['child'][$namespace][$tag];
951
            }
952
        }
953
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
954
        {
955
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_RSS_20]['rss'][0]['child'][$namespace][$tag]))
@@ 953-959 (lines=7) @@
950
                return $this->data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0]['child'][$namespace][$tag];
951
            }
952
        }
953
        if ($type & SIMPLEPIE_TYPE_RSS_SYNDICATION)
954
        {
955
            if (isset($this->data['child'][SIMPLEPIE_NAMESPACE_RSS_20]['rss'][0]['child'][$namespace][$tag]))
956
            {
957
                return $this->data['child'][SIMPLEPIE_NAMESPACE_RSS_20]['rss'][0]['child'][$namespace][$tag];
958
            }
959
        }
960
        return null;
961
    }
962