Code Duplication    Length = 16-17 lines in 2 locations

src/CTe/Dacte.php 2 locations

@@ 693-708 (lines=16) @@
690
        $this->pTextBox($x + $wa + 4.5, $y1, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '');
691
        $tpServ = $this->pSimpleGetValue($this->ide, "tpServ");
692
        //0 - Normal;1 - Subcontratação;2 - Redespacho;3 - Redespacho Intermediário
693
        switch ($tpServ) {
694
            case '0':
695
                $texto = 'Normal';
696
                break;
697
            case '1':
698
                $texto = 'Subcontratação';
699
                break;
700
            case '2':
701
                $texto = 'Redespacho';
702
                break;
703
            case '3':
704
                $texto = 'Redespacho Intermediário';
705
                break;
706
            default:
707
                $texto = 'ERRO' . $tpServ;
708
        }
709
        $aFont = $this->formatNegrito;
710
        $this->pTextBox($x + $wa + 4.5, $y1 + 3, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '', false);
711
        $this->pdf->Line($w * 0.5, $y1, $w * 0.5, $y1 + $h1);
@@ 801-817 (lines=17) @@
798
            'size' => 8,
799
            'style' => '');
800
        $this->pTextBox($x1, $y + 1, $w, $h, $texto, $aFont, 'T', 'C', 0, '');
801
        switch ($this->modal) {
802
            case '1':
803
                $texto = 'Rodoviário';
804
                break;
805
            case '2':
806
                $texto = 'Aéreo';
807
                break;
808
            case '3':
809
                $texto = 'Aquaviário';
810
                break;
811
            case '4':
812
                $texto = 'Ferroviário';
813
                break;
814
            case '5':
815
                $texto = 'Dutoviário';
816
                break;
817
        }
818
        $aFont = array(
819
            'font' => $this->fontePadrao,
820
            'size' => 10,