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

@@ 2948-2950 (lines=3) @@
2945
		$modSettings['warning_mute'] => $txt['profile_warning_effect_own_muted'],
2946
	);
2947
	$context['current_level'] = 0;
2948
	foreach ($context['level_effects'] as $limit => $dummy)
2949
		if ($context['member']['warning'] >= $limit)
2950
			$context['current_level'] = $limit;
2951
}
2952
2953
?>