Code Duplication    Length = 6-6 lines in 2 locations

src/CTe/Dacte.php 1 location

@@ 1815-1820 (lines=6) @@
1812
        $texto = 'CUBAGEM(M3)';
1813
        $aFont = $this->formatPadrao;
1814
        $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1815
        if ($this->pSimpleGetValue($this->infQ->item(0), "cUnid") == '00') {
1816
            $qCarga = $this->pSimpleGetValue($this->infQ->item(0), "qCarga");
1817
            $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
1818
        } else {
1819
            $texto = '';
1820
        }
1821
        $aFont = array(
1822
            'font' => $this->fontePadrao,
1823
            'size' => 7,

src/CTe/DacteV3.php 1 location

@@ 1789-1794 (lines=6) @@
1786
        $texto = 'CUBAGEM(M3)';
1787
        $aFont = $this->formatPadrao;
1788
        $this->pTextBox($x+60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1789
        if ($this->pSimpleGetValue($this->infQ->item(0), "cUnid") == '00') {
1790
            $qCarga = $this->pSimpleGetValue($this->infQ->item(0), "qCarga");
1791
            $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
1792
        } else {
1793
            $texto = '';
1794
        }
1795
        $aFont = array(
1796
            'font' => $this->fontePadrao,
1797
            'size' => 7,