Code Duplication    Length = 4-5 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6598-6602 (lines=5) @@
6595
                } elseif (isset($xvalue[$aName])) {
6596
                    $xname = $aName;
6597
                    $this->debug("value provided for attribute $aName with key $xname");
6598
                } elseif (isset($attrs['default'])) {
6599
                    $xname          = '!' . $aName;
6600
                    $xvalue[$xname] = $attrs['default'];
6601
                    $this->debug('use default value of ' . $xvalue[$aName] . ' for attribute ' . $aName);
6602
                } else {
6603
                    $xname = '';
6604
                    $this->debug("no value provided for attribute $aName");
6605
                }
@@ 6668-6671 (lines=4) @@
6665
            }
6666
            foreach ($typeDef['elements'] as $eName => $attrs) {
6667
                if (!isset($xvalue[$eName])) {
6668
                    if (isset($attrs['default'])) {
6669
                        $xvalue[$eName] = $attrs['default'];
6670
                        $this->debug('use default value of ' . $xvalue[$eName] . ' for element ' . $eName);
6671
                    }
6672
                }
6673
                // if user took advantage of a minOccurs=0, then only serialize named parameters
6674
                if (isset($optionals) && (!isset($xvalue[$eName]))