Code Duplication    Length = 2-2 lines in 2 locations

Sources/RepairBoards.php 1 location

@@ 143-144 (lines=2) @@
140
	// Change these two if more steps are added!
141
	if (empty($max_substep))
142
		$context['continue_percent'] = round(($_GET['step'] * 100) / $context['total_steps']);
143
	else
144
		$context['continue_percent'] = round((($_GET['step'] + ($_GET['substep'] / $max_substep)) * 100) / $context['total_steps']);
145
146
	// Never more than 100%!
147
	$context['continue_percent'] = min($context['continue_percent'], 100);

Sources/ManageAttachments.php 1 location

@@ 1714-1715 (lines=2) @@
1711
	// Change these two if more steps are added!
1712
	if (empty($max_substep))
1713
		$context['continue_percent'] = round(($_GET['step'] * 100) / 25);
1714
	else
1715
		$context['continue_percent'] = round(($_GET['step'] * 100 + ($_GET['substep'] * 100) / $max_substep) / 25);
1716
1717
	// Never more than 100%!
1718
	$context['continue_percent'] = min($context['continue_percent'], 100);