Code Duplication    Length = 9-10 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6788-6797 (lines=10) @@
6785
    {
6786
        if (count($elements) > 0) {
6787
            $eElements = array();
6788
            foreach ($elements as $n => $e) {
6789
                // expand each element
6790
                $ee = array();
6791
                foreach ($e as $k => $v) {
6792
                    $k      = strpos($k, ':') ? $this->expandQname($k) : $k;
6793
                    $v      = strpos($v, ':') ? $this->expandQname($v) : $v;
6794
                    $ee[$k] = $v;
6795
                }
6796
                $eElements[$n] = $ee;
6797
            }
6798
            $elements = $eElements;
6799
        }
6800
@@ 6802-6810 (lines=9) @@
6799
        }
6800
6801
        if (count($attrs) > 0) {
6802
            foreach ($attrs as $n => $a) {
6803
                // expand each attribute
6804
                foreach ($a as $k => $v) {
6805
                    $k      = strpos($k, ':') ? $this->expandQname($k) : $k;
6806
                    $v      = strpos($v, ':') ? $this->expandQname($v) : $v;
6807
                    $aa[$k] = $v;
6808
                }
6809
                $eAttrs[$n] = $aa;
6810
            }
6811
            $attrs = $eAttrs;
6812
        }
6813