Code Duplication    Length = 6-6 lines in 2 locations

programs/utilit/agent_right.ui.php 2 locations

@@ 220-225 (lines=6) @@
217
	    $q = absences_quantity($right->quantity, $right->quantity_unit);
218
	    $nb = 1;
219
	    
220
	    if ($increment = $right->getIncrementQuantity()) {
221
	        if (0 !== (int) round(100 * $increment)) {
222
	            $q .= sprintf(absences_translate(' %s %s by monthly update'), $this->getSign($increment), absences_quantity(abs($increment), $right->quantity_unit));
223
	            $nb++;
224
	        }
225
	    }
226
	    
227
	    if ($dynamic = $this->agentRight->getDynamicQuantity()) {
228
	        if (0 !== (int) round(100 * $dynamic)) {
@@ 227-232 (lines=6) @@
224
	        }
225
	    }
226
	    
227
	    if ($dynamic = $this->agentRight->getDynamicQuantity()) {
228
	        if (0 !== (int) round(100 * $dynamic)) {
229
	            $q .= sprintf(absences_translate(' %s %s by consumption'), $this->getSign($increment), absences_quantity(abs($dynamic), $right->quantity_unit));
230
	            $nb++;
231
	        }
232
	    }
233
	    
234
	    if ($nb > 1) {
235
	        $q .= ' = '.absences_quantity($this->agentRight->getRightQuantity(), $right->quantity_unit);