Code Duplication    Length = 4-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6627-6631 (lines=5) @@
6624
                } elseif (isset($xvalue[$aName])) {
6625
                    $xname = $aName;
6626
                    $this->debug("value provided for attribute $aName with key $xname");
6627
                } elseif (isset($attrs['default'])) {
6628
                    $xname          = '!' . $aName;
6629
                    $xvalue[$xname] = $attrs['default'];
6630
                    $this->debug('use default value of ' . $xvalue[$aName] . ' for attribute ' . $aName);
6631
                } else {
6632
                    $xname = '';
6633
                    $this->debug("no value provided for attribute $aName");
6634
                }
@@ 6697-6700 (lines=4) @@
6694
            }
6695
            foreach ($typeDef['elements'] as $eName => $attrs) {
6696
                if (!isset($xvalue[$eName])) {
6697
                    if (isset($attrs['default'])) {
6698
                        $xvalue[$eName] = $attrs['default'];
6699
                        $this->debug('use default value of ' . $xvalue[$eName] . ' for element ' . $eName);
6700
                    }
6701
                }
6702
                // if user took advantage of a minOccurs=0, then only serialize named parameters
6703
                if (isset($optionals) && (!isset($xvalue[$eName]))