Code Duplication    Length = 5-9 lines in 3 locations

admin/gateways/pec24/nusoap.php 3 locations

@@ 6417-6421 (lines=5) @@
6414
        if ($phpType === 'struct') {
6415
            if (isset($typeDef['typeClass']) && $typeDef['typeClass'] === 'element') {
6416
                $elementName = $uqType;
6417
                if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) {
6418
                    $elementNS = " xmlns=\"$ns\"";
6419
                } else {
6420
                    $elementNS = " xmlns=\"\"";
6421
                }
6422
            } else {
6423
                $elementName = $name;
6424
                if ($unqualified) {
@@ 6474-6482 (lines=9) @@
6471
                $xml = '';
6472
            }
6473
        } elseif ($phpType === 'array') {
6474
            if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) {
6475
                $elementNS = " xmlns=\"$ns\"";
6476
            } else {
6477
                if ($unqualified) {
6478
                    $elementNS = " xmlns=\"\"";
6479
                } else {
6480
                    $elementNS = '';
6481
                }
6482
            }
6483
            if (null === $value) {
6484
                if ($use === 'literal') {
6485
                    // TODO: depends on minOccurs
@@ 6530-6538 (lines=9) @@
6527
                       . $this->getPrefixFromNamespace($this->getPrefix($typeDef['arrayType'])) . ':' . $this->getLocalPart($typeDef['arrayType']) . "[$rows$cols]\">" . $contents . "</$name>";
6528
            }
6529
        } elseif ($phpType === 'scalar') {
6530
            if (isset($typeDef['form']) && ($typeDef['form'] === 'qualified')) {
6531
                $elementNS = " xmlns=\"$ns\"";
6532
            } else {
6533
                if ($unqualified) {
6534
                    $elementNS = " xmlns=\"\"";
6535
                } else {
6536
                    $elementNS = '';
6537
                }
6538
            }
6539
            if ($use === 'literal') {
6540
                if ($forceType) {
6541
                    $xml = "<$name$elementNS xsi:type=\"" . $this->getPrefixFromNamespace($ns) . ":$uqType\">$value</$name>";