Code Duplication    Length = 4-4 lines in 3 locations

src/Elements/ICMSIPI/C495.php 2 locations

@@ 140-143 (lines=4) @@
137
138
    public function postValidation()
139
    {
140
        if ($this->strToFloat('qtd') <= 0) {
141
            throw new \InvalidArgumentException("[" . self::REG . "] " .
142
                " O do campo QTD deve ser maior do que 0");
143
        }
144
        if ($this->strToFloat('vl_item') <= 0) {
145
            throw new \InvalidArgumentException("[" . self::REG . "] " .
146
                " O do campo VL_ITEM deve ser maior do que 0");
@@ 144-147 (lines=4) @@
141
            throw new \InvalidArgumentException("[" . self::REG . "] " .
142
                " O do campo QTD deve ser maior do que 0");
143
        }
144
        if ($this->strToFloat('vl_item') <= 0) {
145
            throw new \InvalidArgumentException("[" . self::REG . "] " .
146
                " O do campo VL_ITEM deve ser maior do que 0");
147
        }
148
    }
149
}
150

src/Elements/ICMSIPI/C610.php 1 location

@@ 156-159 (lines=4) @@
153
154
    public function postValidation()
155
    {
156
        if ($this->strToFloat('qtd') <= 0) {
157
            throw new \InvalidArgumentException("[" . self::REG . "] " .
158
                " O do campo QTD deve ser maior do que 0");
159
        }
160
161
        //transforma os valores em float
162
        $vlBcIcms = $this->strToFloat('vl_bc_icms');