Code Duplication    Length = 29-29 lines in 2 locations

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

@@ 6854-6882 (lines=29) @@
6851
            // CAPTIONS
6852
            if ($captions = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
6853
            {
6854
                foreach ($captions as $caption)
6855
                {
6856
                    $caption_type = null;
6857
                    $caption_lang = null;
6858
                    $caption_startTime = null;
6859
                    $caption_endTime = null;
6860
                    $caption_text = null;
6861
                    if (isset($caption['attribs']['']['type']))
6862
                    {
6863
                        $caption_type = $this->sanitize($caption['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
6864
                    }
6865
                    if (isset($caption['attribs']['']['lang']))
6866
                    {
6867
                        $caption_lang = $this->sanitize($caption['attribs']['']['lang'], SIMPLEPIE_CONSTRUCT_TEXT);
6868
                    }
6869
                    if (isset($caption['attribs']['']['start']))
6870
                    {
6871
                        $caption_startTime = $this->sanitize($caption['attribs']['']['start'], SIMPLEPIE_CONSTRUCT_TEXT);
6872
                    }
6873
                    if (isset($caption['attribs']['']['end']))
6874
                    {
6875
                        $caption_endTime = $this->sanitize($caption['attribs']['']['end'], SIMPLEPIE_CONSTRUCT_TEXT);
6876
                    }
6877
                    if (isset($caption['data']))
6878
                    {
6879
                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
6880
                    }
6881
                    $captions_parent[] = $this->registry->create('Caption', array($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text));
6882
                }
6883
            }
6884
            elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
6885
            {
@@ 6886-6914 (lines=29) @@
6883
            }
6884
            elseif ($captions = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'text'))
6885
            {
6886
                foreach ($captions as $caption)
6887
                {
6888
                    $caption_type = null;
6889
                    $caption_lang = null;
6890
                    $caption_startTime = null;
6891
                    $caption_endTime = null;
6892
                    $caption_text = null;
6893
                    if (isset($caption['attribs']['']['type']))
6894
                    {
6895
                        $caption_type = $this->sanitize($caption['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
6896
                    }
6897
                    if (isset($caption['attribs']['']['lang']))
6898
                    {
6899
                        $caption_lang = $this->sanitize($caption['attribs']['']['lang'], SIMPLEPIE_CONSTRUCT_TEXT);
6900
                    }
6901
                    if (isset($caption['attribs']['']['start']))
6902
                    {
6903
                        $caption_startTime = $this->sanitize($caption['attribs']['']['start'], SIMPLEPIE_CONSTRUCT_TEXT);
6904
                    }
6905
                    if (isset($caption['attribs']['']['end']))
6906
                    {
6907
                        $caption_endTime = $this->sanitize($caption['attribs']['']['end'], SIMPLEPIE_CONSTRUCT_TEXT);
6908
                    }
6909
                    if (isset($caption['data']))
6910
                    {
6911
                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT);
6912
                    }
6913
                    $captions_parent[] = $this->registry->create('Caption', array($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text));
6914
                }
6915
            }
6916
            if (is_array($captions_parent))
6917
            {