Code Duplication    Length = 18-18 lines in 2 locations

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

@@ 7124-7141 (lines=18) @@
7121
            // HASHES
7122
            if ($hashes_iterator = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'hash'))
7123
            {
7124
                foreach ($hashes_iterator as $hash)
7125
                {
7126
                    $value = null;
7127
                    $algo = null;
7128
                    if (isset($hash['data']))
7129
                    {
7130
                        $value = $this->sanitize($hash['data'], SIMPLEPIE_CONSTRUCT_TEXT);
7131
                    }
7132
                    if (isset($hash['attribs']['']['algo']))
7133
                    {
7134
                        $algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
7135
                    }
7136
                    else
7137
                    {
7138
                        $algo = 'md5';
7139
                    }
7140
                    $hashes_parent[] = $algo.':'.$value;
7141
                }
7142
            }
7143
            elseif ($hashes_iterator = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'hash'))
7144
            {
@@ 7145-7162 (lines=18) @@
7142
            }
7143
            elseif ($hashes_iterator = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'hash'))
7144
            {
7145
                foreach ($hashes_iterator as $hash)
7146
                {
7147
                    $value = null;
7148
                    $algo = null;
7149
                    if (isset($hash['data']))
7150
                    {
7151
                        $value = $this->sanitize($hash['data'], SIMPLEPIE_CONSTRUCT_TEXT);
7152
                    }
7153
                    if (isset($hash['attribs']['']['algo']))
7154
                    {
7155
                        $algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
7156
                    }
7157
                    else
7158
                    {
7159
                        $algo = 'md5';
7160
                    }
7161
                    $hashes_parent[] = $algo.':'.$value;
7162
                }
7163
            }
7164
            if (is_array($hashes_parent))
7165
            {