Code Duplication    Length = 4-7 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 1352-1358 (lines=7) @@
1349
                }
1350
                if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1351
                    $v = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1352
                    if (!strpos($v, ':')) {
1353
                        // no namespace in arrayType attribute value...
1354
                        if ($this->defaultNamespace[$pos]) {
1355
                            // ...so use the default
1356
                            $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'] = $this->defaultNamespace[$pos] . ':' . $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1357
                        }
1358
                    }
1359
                }
1360
                if (isset($attrs['name'])) {
1361
                    $this->attributes[$attrs['name']] = $attrs;
@@ 1458-1461 (lines=4) @@
1455
                if (isset($attrs['type'])) {
1456
                    $this->xdebug("processing typed element ".$attrs['name']." of type ".$attrs['type']);
1457
                    if (! $this->getPrefix($attrs['type'])) {
1458
                        if ($this->defaultNamespace[$pos]) {
1459
                            $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1460
                            $this->xdebug('used default namespace to make type ' . $attrs['type']);
1461
                        }
1462
                    }
1463
                    // This is for constructs like
1464
                    //           <complexType name="ListOfString" base="soap:Array">