Code Duplication    Length = 9-13 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 6194-6206 (lines=13) @@
6191
                }
6192
            }
6193
            if (is_null($value)) {
6194
                if ($use == 'literal') {
6195
                    // TODO: depends on minOccurs
6196
                    $xml = "<$name$elementNS/>";
6197
                } else {
6198
                    $xml = "<$name$elementNS xsi:nil=\"true\" xsi:type=\"" .
6199
                        $this->getPrefixFromNamespace('http://schemas.xmlsoap.org/soap/encoding/') .
6200
                        ":Array\" " .
6201
                        $this->getPrefixFromNamespace('http://schemas.xmlsoap.org/soap/encoding/') .
6202
                        ':arrayType="' .
6203
                        $this->getPrefixFromNamespace($this->getPrefix($typeDef['arrayType'])) .
6204
                        ':' .
6205
                        $this->getLocalPart($typeDef['arrayType'])."[0]\"/>";
6206
                }
6207
                $this->debug("in serializeType: returning: $xml");
6208
6209
                return $xml;
@@ 6243-6251 (lines=9) @@
6240
                $xml = "<$name$elementNS>"
6241
                    .$contents
6242
                    ."</$name>";
6243
            } else {
6244
                $xml = "<$name$elementNS xsi:type=\"".$this->getPrefixFromNamespace('http://schemas.xmlsoap.org/soap/encoding/').':Array" '.
6245
                    $this->getPrefixFromNamespace('http://schemas.xmlsoap.org/soap/encoding/')
6246
                    .':arrayType="'
6247
                    .$this->getPrefixFromNamespace($this->getPrefix($typeDef['arrayType']))
6248
                    .":".$this->getLocalPart($typeDef['arrayType'])."[$rows$cols]\">"
6249
                    .$contents
6250
                    ."</$name>";
6251
            }
6252
        } elseif ($phpType == 'scalar') {
6253
            if (isset($typeDef['form']) && ($typeDef['form'] == 'qualified')) {
6254
                $elementNS = " xmlns=\"$ns\"";