Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/right.class.php 1 location

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

programs/utilit/agent_right.class.php 1 location

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