Code Duplication    Length = 12-12 lines in 2 locations

src/CTe/Dacte.php 1 location

@@ 928-939 (lines=12) @@
925
        $this->pTextBox($x, $y + $h1 + 8, $w + 0.5, $h1 - 4.5);
926
        $texto = "Consulta de autenticidade no portal nacional do CT-e, ";
927
        $texto .= "no site da Sefaz Autorizadora, \r\n ou em http://www.cte.fazenda.gov.br";
928
        if ($this->tpEmis == 5 || $this->tpEmis == 7 || $this->tpEmis == 8) {
929
            $texto = "";
930
            $this->pdf->SetFillColor(0, 0, 0);
931
            if ($this->tpEmis == 5) {
932
                $chaveContingencia = $this->zGeraChaveAdicCont();
933
                $this->pdf->Code128($x + 20, $y1 + 10, $chaveContingencia, $bW * .9, $bH / 2);
934
            } else {
935
                $chaveContingencia = $this->pSimpleGetValue($this->protCTe, "nProt");
936
                $this->pdf->Code128($x + 40, $y1 + 10, $chaveContingencia, $bW * .4, $bH / 2);
937
            }
938
            //codigo de barras
939
        }
940
        $aFont = array(
941
            'font' => $this->fontePadrao,
942
            'size' => 8,

src/CTe/DacteV3.php 1 location

@@ 918-929 (lines=12) @@
915
        $this->pTextBox($x, $y + $h1 + 8, $w + 0.5, $h1 - 4.5);
916
        $texto = "Consulta de autenticidade no portal nacional do CT-e, ";
917
        $texto .= "no site da Sefaz Autorizadora, \r\n ou em http://www.cte.fazenda.gov.br";
918
        if ($this->tpEmis == 5 || $this->tpEmis == 7 || $this->tpEmis == 8) {
919
            $texto = "";
920
            $this->pdf->SetFillColor(0, 0, 0);
921
            if ($this->tpEmis == 5) {
922
                $chaveContingencia = $this->zGeraChaveAdicCont();
923
                $this->pdf->Code128($x + 20, $y1 + 10, $chaveContingencia, $bW * .9, $bH / 2);
924
            } else {
925
                $chaveContingencia = $this->pSimpleGetValue($this->protCTe, "nProt");
926
                $this->pdf->Code128($x + 40, $y1 + 10, $chaveContingencia, $bW * .4, $bH / 2);
927
            }
928
            //codigo de barras
929
        }
930
        $aFont = array(
931
            'font' => $this->fontePadrao,
932
            'size' => 8,