Code Duplication    Length = 9-9 lines in 2 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");