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

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