Code Duplication    Length = 3-3 lines in 2 locations

class/xmlparser.php 2 locations

@@ 140-142 (lines=3) @@
137
            $this->channel['language'] = $this->channel['dc']['language'];
138
            unset($this->channel['dc']['language']);
139
        }
140
        if (empty($this->channel['language'])
141
            && preg_match('/<link.*hreflang=[\'"](.*?)[\'"].*?>/m', $this->content, $match)) {
142
            $this->channel['language'] = $match[1];
143
        }
144
        if (empty($this->channel['language'])
145
            && preg_match('/<feed.*xml:lang=[\'"](.*?)[\'"].*?>/m', $this->content, $match)) {
@@ 144-146 (lines=3) @@
141
            && preg_match('/<link.*hreflang=[\'"](.*?)[\'"].*?>/m', $this->content, $match)) {
142
            $this->channel['language'] = $match[1];
143
        }
144
        if (empty($this->channel['language'])
145
            && preg_match('/<feed.*xml:lang=[\'"](.*?)[\'"].*?>/m', $this->content, $match)) {
146
            $this->channel['language'] = $match[1];
147
        }
148
        /* remove to avoid redundant encoding conversion */
149
        if (!empty($this->channel['tagline'])) {