Code Duplication    Length = 9-10 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6761-6770 (lines=10) @@
6758
    ) {
6759
        if (count($elements) > 0) {
6760
            $eElements = array();
6761
            foreach ($elements as $n => $e) {
6762
                // expand each element
6763
                $ee = array();
6764
                foreach ($e as $k => $v) {
6765
                    $k      = strpos($k, ':') ? $this->expandQname($k) : $k;
6766
                    $v      = strpos($v, ':') ? $this->expandQname($v) : $v;
6767
                    $ee[$k] = $v;
6768
                }
6769
                $eElements[$n] = $ee;
6770
            }
6771
            $elements = $eElements;
6772
        }
6773
@@ 6775-6783 (lines=9) @@
6772
        }
6773
6774
        if (count($attrs) > 0) {
6775
            foreach ($attrs as $n => $a) {
6776
                // expand each attribute
6777
                foreach ($a as $k => $v) {
6778
                    $k      = strpos($k, ':') ? $this->expandQname($k) : $k;
6779
                    $v      = strpos($v, ':') ? $this->expandQname($v) : $v;
6780
                    $aa[$k] = $v;
6781
                }
6782
                $eAttrs[$n] = $aa;
6783
            }
6784
            $attrs = $eAttrs;
6785
        }
6786