Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/right.class.php 1 location

@@ 627-638 (lines=12) @@
624
	
625
	
626
	
627
	protected function saveQuantityIncMonth($quantity)
628
	{
629
	    require_once dirname(__FILE__).'/increment_right.class.php';
630
	
631
	    $increment = new absences_IncrementRight();
632
	    $increment->id_right = $this->id;
633
	    $increment->quantity = $quantity;
634
	    $increment->createdOn = date('Y-m-d H:i:s');
635
	    $increment->monthkey = date('Ym');
636
	
637
	    $increment->saveOrUpdate();
638
	}
639
	
640
	
641
	

programs/utilit/agent_right.class.php 1 location

@@ 1194-1205 (lines=12) @@
1191
	
1192
	
1193
	
1194
	protected function saveQuantityIncMonth($quantity)
1195
	{
1196
	    require_once dirname(__FILE__).'/increment_agent_right.class.php';
1197
	    
1198
	    $increment = new absences_IncrementAgentRight();
1199
	    $increment->id_user_right = $this->id;
1200
	    $increment->quantity = $quantity;
1201
	    $increment->createdOn = date('Y-m-d H:i:s');
1202
	    $increment->monthkey = date('Ym');
1203
	    
1204
	    $increment->saveOrUpdate();
1205
	}
1206
	
1207
	
1208
	/**