Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageServer.php 2 locations

@@ 892-905 (lines=14) @@
889
			);
890
891
			// Handle min/max/step if necessary
892
			if ($config_var[3] == 'int' || $config_var[3] == 'float')
893
			{
894
				// Default to a min of 0 if one isn't set
895
				if (isset($config_var['min']))
896
					$context['config_vars'][$config_var[0]]['min'] = $config_var['min'];
897
				else
898
					$context['config_vars'][$config_var[0]]['min'] = 0;
899
900
				if (isset($config_var['max']))
901
					$context['config_vars'][$config_var[0]]['max'] = $config_var['max'];
902
903
				if (isset($config_var['step']))
904
					$context['config_vars'][$config_var[0]]['step'] = $config_var['step'];
905
			}
906
907
			// If this is a select box handle any data.
908
			if (!empty($config_var[4]) && is_array($config_var[4]))
@@ 1033-1046 (lines=14) @@
1030
			);
1031
1032
			// Handle min/max/step if necessary
1033
			if ($config_var[0] == 'int' || $config_var[0] == 'float')
1034
			{
1035
				// Default to a min of 0 if one isn't set
1036
				if (isset($config_var['min']))
1037
					$context['config_vars'][$config_var[1]]['min'] = $config_var['min'];
1038
				else
1039
					$context['config_vars'][$config_var[1]]['min'] = 0;
1040
1041
				if (isset($config_var['max']))
1042
					$context['config_vars'][$config_var[1]]['max'] = $config_var['max'];
1043
1044
				if (isset($config_var['step']))
1045
					$context['config_vars'][$config_var[1]]['step'] = $config_var['step'];
1046
			}
1047
1048
			// If this is a select box handle any data.
1049
			if (!empty($config_var[2]) && is_array($config_var[2]))