Code Duplication    Length = 12-12 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6588-6599 (lines=12) @@
6585
        'documentation' => $documentation);
6586
        // add portTypes
6587
        // add messages
6588
        if($in)
6589
        {
6590
            foreach($in as $pName => $pType)
6591
            {
6592
                if (strpos($pType,':')) {
6593
                    $pType = $this->getNamespaceFromPrefix($this->getPrefix($pType)).":".$this->getLocalPart($pType);
6594
                }
6595
                $this->messages[$name.'Request'][$pName] = $pType;
6596
            }
6597
        } else {
6598
            $this->messages[$name.'Request']= '0';
6599
        }
6600
        if($out)
6601
        {
6602
            foreach($out as $pName => $pType)
@@ 6600-6611 (lines=12) @@
6597
        } else {
6598
            $this->messages[$name.'Request']= '0';
6599
        }
6600
        if($out)
6601
        {
6602
            foreach($out as $pName => $pType)
6603
            {
6604
                if (strpos($pType,':')) {
6605
                    $pType = $this->getNamespaceFromPrefix($this->getPrefix($pType)).":".$this->getLocalPart($pType);
6606
                }
6607
                $this->messages[$name.'Response'][$pName] = $pType;
6608
            }
6609
        } else {
6610
            $this->messages[$name.'Response']= '0';
6611
        }
6612
6613
        return true;
6614
    }