Code Duplication    Length = 9-9 lines in 4 locations

src/CTe/Dacte.php 2 locations

@@ 1425-1433 (lines=9) @@
1422
        $aFont = $this->formatPadrao;
1423
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1424
        $aFont = $this->formatNegrito;
1425
        if (isset($this->enderExped)) {
1426
            $texto = $this->pSimpleGetValue($this->enderExped, "xLgr") . ', ';
1427
            $texto .= $this->pSimpleGetValue($this->enderExped, "nro");
1428
            $texto .= $this->pSimpleGetValue($this->enderExped, "xCpl") != "" ?
1429
                ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") :
1430
                '';
1431
        } else {
1432
            $texto = '';
1433
        }
1434
        $this->pTextBox($x1, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1435
        $y += 3;
1436
        $texto = $this->pSimpleGetValue($this->enderExped, "xBairro");
@@ 1522-1530 (lines=9) @@
1519
        $aFont = $this->formatPadrao;
1520
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1521
        $aFont = $this->formatNegrito;
1522
        if (isset($this->enderReceb)) {
1523
            $texto = $this->pSimpleGetValue($this->enderReceb, "xLgr") . ', ';
1524
            $texto .= $this->pSimpleGetValue($this->enderReceb, "nro");
1525
            $texto .= ($this->pSimpleGetValue($this->enderReceb, "xCpl") != "") ?
1526
                ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") :
1527
                '';
1528
        } else {
1529
            $texto = '';
1530
        }
1531
        $this->pTextBox($x1, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1532
        $y += 3;
1533
        $texto = $this->pSimpleGetValue($this->enderReceb, "xBairro");

src/CTe/DacteV3.php 2 locations

@@ 1417-1425 (lines=9) @@
1414
        $aFont = $this->formatPadrao;
1415
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1416
        $aFont = $this->formatNegrito;
1417
        if (isset($this->enderExped)) {
1418
            $texto = $this->pSimpleGetValue($this->enderExped, "xLgr") . ', ';
1419
            $texto .= $this->pSimpleGetValue($this->enderExped, "nro");
1420
            $texto .= $this->pSimpleGetValue($this->enderExped, "xCpl") != "" ?
1421
                ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") :
1422
                '';
1423
        } else {
1424
            $texto = '';
1425
        }
1426
        $this->pTextBox($x1, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1427
        $y += 3;
1428
        $texto = $this->pSimpleGetValue($this->enderExped, "xBairro");
@@ 1514-1522 (lines=9) @@
1511
        $aFont = $this->formatPadrao;
1512
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1513
        $aFont = $this->formatNegrito;
1514
        if (isset($this->enderReceb)) {
1515
            $texto = $this->pSimpleGetValue($this->enderReceb, "xLgr") . ', ';
1516
            $texto .= $this->pSimpleGetValue($this->enderReceb, "nro");
1517
            $texto .= ($this->pSimpleGetValue($this->enderReceb, "xCpl") != "") ?
1518
                ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") :
1519
                '';
1520
        } else {
1521
            $texto = '';
1522
        }
1523
        $this->pTextBox($x1, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1524
        $y += 3;
1525
        $texto = $this->pSimpleGetValue($this->enderReceb, "xBairro");