Code Duplication    Length = 8-8 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6957-6964 (lines=8) @@
6954
                } elseif (isset($this->message[$pos]['cdata']) && trim($this->message[$pos]['cdata']) != '') {
6955
                    if (isset($this->message[$pos]['type'])) {
6956
                        $this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? $this->message[$pos]['type_namespace'] : '');
6957
                    } else {
6958
                        $parent = $this->message[$pos]['parent'];
6959
                        if (isset($this->message[$parent]['type']) && ($this->message[$parent]['type'] == 'array') && isset($this->message[$parent]['arrayType'])) {
6960
                            $this->message[$pos]['xattrs']['!'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayType'], isset($this->message[$parent]['arrayTypeNamespace']) ? $this->message[$parent]['arrayTypeNamespace'] : '');
6961
                        } else {
6962
                            $this->message[$pos]['xattrs']['!'] = $this->message[$pos]['cdata'];
6963
                        }
6964
                    }
6965
                }
6966
                $this->message[$pos]['result'] = $this->message[$pos]['xattrs'];
6967
            // set value of simpleType (or nil complexType)
@@ 6974-6981 (lines=8) @@
6971
                    $this->message[$pos]['xattrs']['!'] = null;
6972
                } elseif (isset($this->message[$pos]['type'])) {
6973
                    $this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$pos]['type'], isset($this->message[$pos]['type_namespace']) ? $this->message[$pos]['type_namespace'] : '');
6974
                } else {
6975
                    $parent = $this->message[$pos]['parent'];
6976
                    if (isset($this->message[$parent]['type']) && ($this->message[$parent]['type'] == 'array') && isset($this->message[$parent]['arrayType'])) {
6977
                        $this->message[$pos]['result'] = $this->decodeSimple($this->message[$pos]['cdata'], $this->message[$parent]['arrayType'], isset($this->message[$parent]['arrayTypeNamespace']) ? $this->message[$parent]['arrayTypeNamespace'] : '');
6978
                    } else {
6979
                        $this->message[$pos]['result'] = $this->message[$pos]['cdata'];
6980
                    }
6981
                }
6982
6983
                /* add value to parent's result, if parent is struct/array
6984
                $parent = $this->message[$pos]['parent'];