Code Duplication    Length = 4-4 lines in 2 locations

src/CTe/Dacte.php 1 location

@@ 2555-2558 (lines=4) @@
2552
        $auxX = $oldX;
2553
        $yIniDados = $y;
2554
        $texto = '';
2555
        foreach ($this->compl as $k => $d) {
2556
            $xObs = $this->pSimpleGetValue($this->compl->item($k), "xObs");
2557
            $texto .= "\r\n" . $xObs;
2558
        }
2559
        $texto .= $this->pSimpleGetValue($this->imp, "infAdFisco", "\r\n");
2560
        $texto .= $this->zLocalEntrega();
2561
        $aFont = array(

src/CTe/DacteV3.php 1 location

@@ 2527-2530 (lines=4) @@
2524
        $auxX = $oldX;
2525
        $yIniDados = $y;
2526
        $texto = '';
2527
        foreach ($this->compl as $k => $d) {
2528
            $xObs = $this->pSimpleGetValue($this->compl->item($k), "xObs");
2529
            $texto .= $xObs;
2530
        }
2531
        $textoObs = explode("Motorista:", $texto);
2532
        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
2533
        $texto .= $this->pSimpleGetValue($this->imp, "infAdFisco", "\r\n");