Code Duplication    Length = 9-9 lines in 2 locations

programs/utilit/right.class.php 2 locations

@@ 428-436 (lines=9) @@
425
	/**
426
	 * @return absences_RightRule
427
	 */
428
	public function getRightRule()
429
	{
430
		if (!isset($this->right_rule))
431
		{
432
			require_once dirname(__FILE__).'/right_rule.class.php';
433
			$this->right_rule = absences_RightRule::getFromRight($this->id);	
434
		}
435
		return $this->right_rule;
436
	}
437
	
438
	
439
	
@@ 454-462 (lines=9) @@
451
	/**
452
	 * @return absences_RightCet
453
	 */
454
	public function getRightCet()
455
	{
456
		if (!isset($this->right_cet))
457
		{
458
			require_once dirname(__FILE__).'/right_cet.class.php';
459
			$this->right_cet = absences_RightCet::getFromRight($this->id);
460
		}
461
		return $this->right_cet;
462
	}
463
	
464
	
465