Code Duplication    Length = 15-16 lines in 2 locations

programs/vacuser.php 2 locations

@@ 3387-3402 (lines=16) @@
3384
			
3385
		break;
3386
		
3387
	case 'workperiod':
3388
		absences_createWorkperiodRecoverRequest();
3389
		
3390
		
3391
		if (!bab_rp('id_user')) {
3392
		  $babBody->addItemMenu("lvreq", absences_translate("Requests"), absences_addon()->getUrl()."vacuser&idx=lvreq");
3393
		}
3394
		
3395
		$babBody->addItemMenu("workperiod", absences_translate("Working day"), absences_addon()->getUrl()."vacuser&idx=workperiod");
3396
		
3397
		if( $agent->isManager())
3398
			$babBody->addItemMenu("list", absences_translate("Management"), absences_addon()->getUrl()."vacadm");
3399
		
3400
		if ($agent->isEntityManager())
3401
			$babBody->addItemMenu("entities", absences_translate("Delegate management"), absences_addon()->getUrl()."vacchart&idx=entities");
3402
		break;
3403
		
3404
	case 'cet':
3405
		absences_createCetDepositRequest();
@@ 3404-3418 (lines=15) @@
3401
			$babBody->addItemMenu("entities", absences_translate("Delegate management"), absences_addon()->getUrl()."vacchart&idx=entities");
3402
		break;
3403
		
3404
	case 'cet':
3405
		absences_createCetDepositRequest();
3406
		
3407
		if (!bab_rp('id_user')) {
3408
		    $babBody->addItemMenu("lvreq", absences_translate("Requests"), absences_addon()->getUrl()."vacuser&idx=lvreq");
3409
		}
3410
		
3411
		$babBody->addItemMenu("cet", absences_translate("Time saving account"), absences_addon()->getUrl()."vacuser&idx=cet");
3412
		
3413
		if( $agent->isManager())
3414
			$babBody->addItemMenu("list", absences_translate("Management"), absences_addon()->getUrl()."vacadm");
3415
		
3416
		if ($agent->isEntityManager())
3417
			$babBody->addItemMenu("entities", absences_translate("Delegate management"), absences_addon()->getUrl()."vacchart&idx=entities");
3418
		break;
3419
		
3420
	case 'movement':
3421