Code Duplication    Length = 11-11 lines in 3 locations

src/CTe/Dacte.php 3 locations

@@ 2706-2716 (lines=11) @@
2703
            $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2704
            $this->pdf->Line($x, $y, $x, $y + 14);
2705
            $yIniDados = $y;
2706
            if (count($this->veic) >= 0) {
2707
                foreach ($this->veic as $k => $d) {
2708
                    $yIniDados = $yIniDados + 3;
2709
                    $texto = $this->pSimpleGetValue($this->veic->item($k), "placa");
2710
                    $aFont = array(
2711
                        'font' => $this->fontePadrao,
2712
                        'size' => 6,
2713
                        'style' => 'B');
2714
                    $this->pTextBox($x, $yIniDados, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2715
                }
2716
            }
2717
            $x += $w * 0.13;
2718
            $texto = 'UF';
2719
            $aFont = $this->formatPadrao;
@@ 2723-2733 (lines=11) @@
2720
            $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2721
            $this->pdf->Line($x, $y, $x, $y + 23);
2722
            $yIniDados = $y;
2723
            if (count($this->veic) >= 0) {
2724
                foreach ($this->veic as $k => $d) {
2725
                    $yIniDados = $yIniDados + 3;
2726
                    $texto = $this->pSimpleGetValue($this->veic->item($k), "UF");
2727
                    $aFont = array(
2728
                        'font' => $this->fontePadrao,
2729
                        'size' => 6,
2730
                        'style' => 'B');
2731
                    $this->pTextBox($x, $yIniDados, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2732
                }
2733
            }
2734
            $x += $w * 0.03;
2735
            $texto = 'RNTRC';
2736
            $aFont = $this->formatPadrao;
@@ 2740-2750 (lines=11) @@
2737
            $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2738
            $this->pdf->Line($x, $y, $x, $y + 14);
2739
            $yIniDados = $y;
2740
            if (count($this->veic) >= 0) {
2741
                foreach ($this->veic as $k => $d) {
2742
                    $yIniDados = $yIniDados + 3;
2743
                    $texto = $this->pSimpleGetValue($this->veic->item($k), "RNTRC");
2744
                    $aFont = array(
2745
                        'font' => $this->fontePadrao,
2746
                        'size' => 6,
2747
                        'style' => 'B');
2748
                    $this->pTextBox($x, $yIniDados, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
2749
                }
2750
            }
2751
            $y += 14;
2752
            $x = 1;
2753
            $texto = 'NOME DO MOTORISTA';