Code Duplication    Length = 8-10 lines in 2 locations

programs/utilit/right.class.php 1 location

@@ 614-623 (lines=10) @@
611
	 *
612
	 * @return bool
613
	 */
614
	public function isAccessibleOnMonth()
615
	{
616
		require_once $GLOBALS['babInstallPath'].'utilit/dateTime.php';
617
		$begin = new BAB_DateTime(date('Y'), date('n'), 1);
618
		$end = new BAB_DateTime(date('Y'), date('n'), date('t'), 23, 59, 59);
619
		
620
		$rightRule = $this->getRightRule();
621
	
622
		return $rightRule->isAccessibleOnPeriod($begin->getTimeStamp(), $end->getTimeStamp());
623
	}
624
	
625
	
626
	

programs/utilit/agent_right.class.php 1 location

@@ 1183-1190 (lines=8) @@
1180
	 * 
1181
	 * @return bool
1182
	 */
1183
	public function isAccessibleOnMonth()
1184
	{
1185
		require_once $GLOBALS['babInstallPath'].'utilit/dateTime.php';
1186
		$begin = new BAB_DateTime(date('Y'), date('n'), 1);
1187
		$end = new BAB_DateTime(date('Y'), date('n'), date('t'), 23, 59, 59);
1188
		
1189
		return $this->isAccessibleOnPeriod($begin->getTimeStamp(), $end->getTimeStamp());
1190
	}
1191
	
1192
	
1193