Code Duplication    Length = 9-10 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6463-6472 (lines=10) @@
6460
    function addComplexType($name,$typeClass='complexType',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType='') {
6461
        if (count($elements) > 0) {
6462
            $eElements = array();
6463
            foreach ($elements as $n => $e) {
6464
                // expand each element
6465
                $ee = array();
6466
                foreach ($e as $k => $v) {
6467
                    $k = strpos($k,':') ? $this->expandQname($k) : $k;
6468
                    $v = strpos($v,':') ? $this->expandQname($v) : $v;
6469
                    $ee[$k] = $v;
6470
                }
6471
                $eElements[$n] = $ee;
6472
            }
6473
            $elements = $eElements;
6474
        }
6475
@@ 6477-6485 (lines=9) @@
6474
        }
6475
6476
        if (count($attrs) > 0) {
6477
            foreach ($attrs as $n => $a) {
6478
                // expand each attribute
6479
                foreach ($a as $k => $v) {
6480
                    $k = strpos($k,':') ? $this->expandQname($k) : $k;
6481
                    $v = strpos($v,':') ? $this->expandQname($v) : $v;
6482
                    $aa[$k] = $v;
6483
                }
6484
                $eAttrs[$n] = $aa;
6485
            }
6486
            $attrs = $eAttrs;
6487
        }
6488