Code Duplication    Length = 3-3 lines in 2 locations

programs/vacuser.php 2 locations

@@ 1741-1743 (lines=3) @@
1738
		
1739
1740
		
1741
		if ($nbdays['total']['D'] > 0 && !absences_cq($nbdays['total']['D'], $days)) {
1742
		    throw new Exception(absences_translate("Quantities must match total days"));
1743
		}
1744
		
1745
		if ($nbdays['total']['H'] > 0 && !absences_cq($nbdays['total']['H'], $hours)) {
1746
		    throw new Exception(absences_translate("Quantities must match total hours"));
@@ 1745-1747 (lines=3) @@
1742
		    throw new Exception(absences_translate("Quantities must match total days"));
1743
		}
1744
		
1745
		if ($nbdays['total']['H'] > 0 && !absences_cq($nbdays['total']['H'], $hours)) {
1746
		    throw new Exception(absences_translate("Quantities must match total hours"));
1747
		}
1748
		
1749
		return $nbdays;
1750
	}