Code Duplication    Length = 7-7 lines in 2 locations

src/Legacy/Pdf.php 1 location

@@ 804-810 (lines=7) @@
801
        $this->setDrawColor(110);
802
        $this->setLineWidth($h);
803
        $wDash = ($w/$n)/2; // comprimento dos traços
804
        for ($i=$x; $i<=$x+$w; $i += $wDash+$wDash) {
805
            for ($j=$i; $j<= ($i+$wDash); $j++) {
806
                if ($j <= ($x+$w-1)) {
807
                    $this->line($j, $y, $j+1, $y);
808
                }
809
            }
810
        }
811
        $this->setDrawColor(0);
812
    }
813

src/CTe/Dacte.php 1 location

@@ 3452-3458 (lines=7) @@
3449
    {
3450
        $this->pdf->SetLineWidth($h);
3451
        $wDash = ($w / $n) / 2; // comprimento dos traços
3452
        for ($i = $x; $i <= $x + $w; $i += $wDash + $wDash) {
3453
            for ($j = $i; $j <= ($i + $wDash); $j++) {
3454
                if ($j <= ($x + $w - 1)) {
3455
                    $this->pdf->Line($j, $y, $j + 1, $y);
3456
                }
3457
            }
3458
        }
3459
    } //fim função hDashedLine
3460
3461
    /**