Code Duplication    Length = 11-11 lines in 2 locations

src/CTe/Dacte.php 2 locations

@@ 2200-2210 (lines=11) @@
2197
        $this->pTextBox($x, $y, $w * 0.13, $h, $texto, $aFont, 'T', 'L', 0, '');
2198
        
2199
        $x += $w * 0.14;
2200
        if ($this->modal == '1') {
2201
            if ($this->lota == 1) {
2202
                $this->pdf->Line($x, $y, $x, $y + 31.5); // TESTE
2203
            } else {
2204
                $this->pdf->Line($x, $y, $x, $y + 49.5); // TESTE
2205
            }
2206
        } elseif ($this->modal == '3') {
2207
            $this->pdf->Line($x, $y, $x, $y + 34.1);
2208
        } else {
2209
            $this->pdf->Line($x, $y, $x, $y + 21.5);
2210
        }
2211
        $texto = $descr1;
2212
        $aFont = $this->formatPadrao;
2213
        $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ 2402-2412 (lines=11) @@
2399
        $this->pTextBox($x, $y, $w * 0.13, $h, $texto, $aFont, 'T', 'L', 0, '');
2400
        
2401
        $x += $w * 0.14;
2402
        if ($this->modal == '1') {
2403
            if ($this->lota == 1) {
2404
                $this->pdf->Line($x, $y, $x, $y + 31.5);
2405
            } else {
2406
                $this->pdf->Line($x, $y, $x, $y + 49.5);
2407
            }
2408
        } elseif ($this->modal == '3') {
2409
            $this->pdf->Line($x, $y, $x, $y + 34.1);
2410
        } else {
2411
            $this->pdf->Line($x, $y, $x, $y + 21.5);
2412
        }
2413
        $texto = $descr1;
2414
        $aFont = $this->formatPadrao;
2415
        $this->pTextBox($x, $y, $w * 0.10, $h, $texto, $aFont, 'T', 'L', 0, '');