Code Duplication    Length = 3-3 lines in 4 locations

web_interface/astpp/application/libraries/astpp/common.php 4 locations

@@ 1118-1120 (lines=3) @@
1115
				$message = str_replace('#BALANCE#', $accountinfo['balance'], $message);
1116
				$message = str_replace('#ACCOUNTNUMBER#',$reseller_number, $message);
1117
				break;
1118
			case 'add_subscription':
1119
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1120
				break;
1121
			case 'remove_subscription':
1122
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1123
				break;
@@ 1121-1123 (lines=3) @@
1118
			case 'add_subscription':
1119
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1120
				break;
1121
			case 'remove_subscription':
1122
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1123
				break;
1124
			case 'add_package':
1125
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1126
				break;
@@ 1124-1126 (lines=3) @@
1121
			case 'remove_subscription':
1122
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1123
				break;
1124
			case 'add_package':
1125
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1126
				break;
1127
			case 'remove_package':
1128
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1129
				break;
@@ 1127-1129 (lines=3) @@
1124
			case 'add_package':
1125
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1126
				break;
1127
			case 'remove_package':
1128
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1129
				break;
1130
			case 'email_calling_card':
1131
				$message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message);
1132
				$message = str_replace('#CARDNUMBER#', $accountinfo['cardnumber'], $message);