Code Duplication    Length = 3-3 lines in 2 locations

Sources/Profile-Actions.php 1 location

@@ 275-277 (lines=3) @@
272
		$modSettings['warning_mute'] => $txt['profile_warning_effect_mute'],
273
	);
274
	$context['current_level'] = 0;
275
	foreach ($context['level_effects'] as $limit => $dummy)
276
		if ($context['member']['warning'] >= $limit)
277
			$context['current_level'] = $limit;
278
279
	$listOptions = array(
280
		'id' => 'view_warnings',

Sources/Profile-View.php 1 location

@@ 2973-2975 (lines=3) @@
2970
		$modSettings['warning_mute'] => $txt['profile_warning_effect_own_muted'],
2971
	);
2972
	$context['current_level'] = 0;
2973
	foreach ($context['level_effects'] as $limit => $dummy)
2974
		if ($context['member']['warning'] >= $limit)
2975
			$context['current_level'] = $limit;
2976
}
2977
2978
?>