Code Duplication    Length = 3-3 lines in 2 locations

src/Intraface/modules/debtor/DebtorItem.php 2 locations

@@ 490-492 (lines=3) @@
487
                if ($product->get("vat") == 0) {
488
                    $item_no_vat[$j] = $item;
489
                    $item_no_vat[$j]["amount"] = new Ilib_Variable_Float($item["quantity"] * $item["price"]->getAsIso(2));
490
                    if ($currency) {
491
                        $item_no_vat[$j]["amount_currency"] = new Ilib_Variable_Float($item["quantity"] * $item["price_currency"]->getAsIso(2), 'iso');
492
                    }
493
                    $j++;
494
                } else {
495
                    $item_with_vat[$i] = $item;
@@ 497-499 (lines=3) @@
494
                } else {
495
                    $item_with_vat[$i] = $item;
496
                    $item_with_vat[$i]["amount"] = new Ilib_Variable_Float($item["quantity"] * $item["price"]->getAsIso(2) * 1.25);
497
                    if ($currency) {
498
                        $item_with_vat[$i]["amount_currency"] = new Ilib_Variable_Float($item["quantity"] * $item["price_currency"]->getAsIso(2) * 1.25, 'iso');
499
                    }
500
                    $i++;
501
                }
502
            } else {