Code Duplication    Length = 6-6 lines in 2 locations

admin/gateways/pec24/nusoap.php 2 locations

@@ 1419-1424 (lines=6) @@
1416
                            $this->namespaces['ns' . (count($this->namespaces) + 1)] = $v;
1417
                        }
1418
                    }
1419
                    if ($v === 'http://www.w3.org/2001/XMLSchema' || $v === 'http://www.w3.org/1999/XMLSchema'
1420
                        || $v === 'http://www.w3.org/2000/10/XMLSchema') {
1421
                        $this->XMLSchemaVersion  = $v;
1422
                        $this->namespaces['xsi'] = $v . '-instance';
1423
                    }
1424
                }
1425
            }
1426
            foreach ($attrs as $k => $v) {
1427
                // expand each attribute
@@ 5256-5261 (lines=6) @@
5253
                        } else {
5254
                            $this->namespaces['ns' . (count($this->namespaces) + 1)] = $v;
5255
                        }
5256
                        if ($v === 'http://www.w3.org/2001/XMLSchema' || $v === 'http://www.w3.org/1999/XMLSchema'
5257
                            || $v === 'http://www.w3.org/2000/10/XMLSchema') {
5258
                            $this->XMLSchemaVersion  = $v;
5259
                            $this->namespaces['xsi'] = $v . '-instance';
5260
                        }
5261
                    }
5262
                }
5263
                // expand each attribute prefix to its namespace
5264
                foreach ($attrs as $k => $v) {