Code Duplication    Length = 5-5 lines in 5 locations

src/NFe/Danfe.php 4 locations

@@ 1411-1415 (lines=5) @@
1408
        //DESTINATÁRIO / REMETENTE
1409
        $oldX = $x;
1410
        $oldY = $y;
1411
        if ($this->orientacao == 'P') {
1412
            $maxW = $this->wPrint;
1413
        } else {
1414
            $maxW = $this->wPrint - $this->wCanhoto;
1415
        }
1416
        $w = $maxW;
1417
        $h = 7;
1418
        $texto = 'DESTINATÁRIO / REMETENTE';
@@ 1875-1879 (lines=5) @@
1872
    protected function pTransporteDANFE($x, $y)
1873
    {
1874
        $oldX = $x;
1875
        if ($this->orientacao == 'P') {
1876
            $maxW = $this->wPrint;
1877
        } else {
1878
            $maxW = $this->wPrint - $this->wCanhoto;
1879
        }
1880
        //#####################################################################
1881
        //TRANSPORTADOR / VOLUMES TRANSPORTADOS
1882
        $texto = "TRANSPORTADOR / VOLUMES TRANSPORTADOS";
@@ 2592-2596 (lines=5) @@
2589
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'B', 'R', 0, '');
2590
        //VALOR TOTAL DO ISSQN
2591
        $x += $w;
2592
        if ($this->orientacao == 'P') {
2593
            $w = $this->wPrint - (3 * $w);
2594
        } else {
2595
            $w = $this->wPrint - (3 * $w)-$this->wCanhoto;
2596
        }
2597
        $texto = 'VALOR TOTAL DO ISSQN';
2598
        $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'');
2599
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, '');
@@ 2651-2655 (lines=5) @@
2648
        $texto = "RESERVADO AO FISCO";
2649
        $x += $w;
2650
        $y -= 1;
2651
        if ($this->orientacao == 'P') {
2652
            $w = $this->wPrint-$w;
2653
        } else {
2654
            $w = $this->wPrint-$w-$this->wCanhoto;
2655
        }
2656
        $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'B');
2657
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 1, '');
2658
        //inserir texto informando caso de contingência

src/CTe/Dacte.php 1 location

@@ 3396-3400 (lines=5) @@
3393
        $texto = "RESERVADO AO FISCO";
3394
        $x += $w;
3395
        $y -= 1;
3396
        if ($this->orientacao == 'P') {
3397
            $w = $this->wPrint - $w;
3398
        } else {
3399
            $w = $this->wPrint - $w - $this->wCanhoto;
3400
        }
3401
        $aFont = array(
3402
            'font' => $this->fontePadrao,
3403
            'size' => 6,