Code Duplication    Length = 6-9 lines in 2 locations

src/CTe/Dacte.php 2 locations

@@ 2166-2174 (lines=9) @@
2163
        $w = $maxW;
2164
        
2165
        // SE FOR RODOVIARIO ( BTR-SEMPRE SERÁ )
2166
        if ($this->modal == '1') {
2167
            // 0 - Não; 1 - Sim Será lotação quando houver um único conhecimento de transporte por veículo,
2168
            // ou combinação veicular, e por viagem
2169
            $h = $this->lota == 1 ? 35 : 53;
2170
        } elseif ($this->modal == '3') {
2171
            $h = 37.6;
2172
        } else {
2173
            $h = 35;
2174
        }
2175
        $texto = 'DOCUMENTOS ORIGINÁRIOS';
2176
        $aFont = $this->formatPadrao;
2177
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'C', 1, '');
@@ 2611-2616 (lines=6) @@
2608
            $maxW = $this->wPrint - $this->wCanhoto;
2609
        }
2610
        $w = $maxW;
2611
        if ($this->modal == '1') {
2612
            $h = $this->lota == 1 ? 12.5 : 3.7;
2613
            $lotacao = $this->lota == 1 ? 'Sim' : 'Não';
2614
        } else {
2615
            $h = 12.5;
2616
        }
2617
        $textolota = $this->lota == 1 ? 'LOTAÇÃO' : 'CARGA FRACIONADA';
2618
        $texto = 'DADOS ESPECÍFICOS DO MODAL RODOVIÁRIO - ' . $textolota;
2619
        $aFont = $this->formatPadrao;