Code Duplication    Length = 5-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 4593-4597 (lines=5) @@
4590
4591
            return false;
4592
        }
4593
        if (false === strpos($headers['content-type'], 'text/xml')) {
4594
            $this->setError('Request not of type text/xml');
4595
4596
            return false;
4597
        }
4598
        if (strpos($headers['content-type'], '=')) {
4599
            $enc = str_replace('"', '', substr(strstr($headers['content-type'], '='), 1));
4600
            $this->debug('Got response encoding: ' . $enc);
@@ 8139-8143 (lines=5) @@
8136
8137
            return false;
8138
        }
8139
        if (false === strpos($headers['content-type'], 'text/xml')) {
8140
            $this->setError('Response not of type text/xml: ' . $headers['content-type']);
8141
8142
            return false;
8143
        }
8144
        if (strpos($headers['content-type'], '=')) {
8145
            $enc = str_replace('"', '', substr(strstr($headers['content-type'], '='), 1));
8146
            $this->debug('Got response encoding: ' . $enc);