Code Duplication    Length = 7-7 lines in 2 locations

src/CTe/Dacte.php 1 location

@@ 950-956 (lines=7) @@
947
        $h = 8.5;
948
        $wa = $w;
949
        $this->pTextBox($x, $y + 7.5, $w + 0.5, $h);
950
        if ($this->zCteDPEC()) {
951
            $texto = 'NÚMERO DE REGISTRO DPEC';
952
        } elseif ($this->tpEmis == 5 || $this->tpEmis == 7 || $this->tpEmis == 8) {
953
            $texto = "DADOS DO CT-E";
954
        } else {
955
            $texto = 'PROTOCOLO DE AUTORIZAÇÃO DE USO';
956
        }
957
        $aFont = $this->formatPadrao;
958
        $this->pTextBox($x, $y + 7.5, $wa, $h, $texto, $aFont, 'T', 'L', 0, '');
959
        if ($this->zCteDPEC()) {

src/CTe/DacteV3.php 1 location

@@ 940-946 (lines=7) @@
937
        $h = 8.5;
938
        $wa = $w;
939
        $this->pTextBox($x, $y + 7.5, $w + 0.5, $h);
940
        if ($this->zCteDPEC()) {
941
            $texto = 'NÚMERO DE REGISTRO DPEC';
942
        } elseif ($this->tpEmis == 5 || $this->tpEmis == 7 || $this->tpEmis == 8) {
943
            $texto = "DADOS DO CT-E";
944
        } else {
945
            $texto = 'PROTOCOLO DE AUTORIZAÇÃO DE USO';
946
        }
947
        $aFont = $this->formatPadrao;
948
        $this->pTextBox($x, $y + 7.5, $wa, $h, $texto, $aFont, 'T', 'L', 0, '');
949
        if ($this->zCteDPEC()) {