Code Duplication    Length = 7-7 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 703-709 (lines=7) @@
700
                            }
701
                        }
702
                        $array_type = $i;
703
                        if ($use === 'literal') {
704
                            $type_str = '';
705
                        } elseif (isset($type) && isset($type_prefix)) {
706
                            $type_str = " xsi:type=\"$type_prefix:$type\"";
707
                        } else {
708
                            $type_str = " xsi:type=\"SOAP-ENC:Array\" SOAP-ENC:arrayType=\"" . $array_typename . "[$array_type]\"";
709
                        }
710
                        // empty array
711
                    } else {
712
                        if ($use === 'literal') {
@@ 712-718 (lines=7) @@
709
                        }
710
                        // empty array
711
                    } else {
712
                        if ($use === 'literal') {
713
                            $type_str = '';
714
                        } elseif (isset($type) && isset($type_prefix)) {
715
                            $type_str = " xsi:type=\"$type_prefix:$type\"";
716
                        } else {
717
                            $type_str = " xsi:type=\"SOAP-ENC:Array\" SOAP-ENC:arrayType=\"xsd:anyType[0]\"";
718
                        }
719
                    }
720
                    // TODO: for array in literal, there is no wrapper here
721
                    $xml = "<$name$xmlns$type_str$atts>" . $xml . "</$name>";