Code Duplication    Length = 5-5 lines in 2 locations

src/Intraface/modules/product/ProductDetail.php 2 locations

@@ 168-172 (lines=5) @@
165
    {
166
        $array_var = safeToDb($array_var);
167
168
        if (isset($array_var['price'])) {
169
            $amount = new Intraface_Amount($array_var['price']);
170
            $amount->convert2db();
171
            $array_var['price'] = $amount->get();
172
        }
173
174
        if (isset($array_var['before_price'])) {
175
            $amount = new Intraface_Amount($array_var['before_price']);
@@ 174-178 (lines=5) @@
171
            $array_var['price'] = $amount->get();
172
        }
173
174
        if (isset($array_var['before_price'])) {
175
            $amount = new Intraface_Amount($array_var['before_price']);
176
            $amount->convert2db();
177
            $array_var['before_price'] = $amount->get();
178
        }
179
180
181
        if ($this->old_detail_id != 0) {