Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageServer.php 2 locations

@@ 911-924 (lines=14) @@
908
			);
909
910
			// Handle min/max/step if necessary
911
			if ($config_var[3] == 'int' || $config_var[3] == 'float')
912
			{
913
				// Default to a min of 0 if one isn't set
914
				if (isset($config_var['min']))
915
					$context['config_vars'][$config_var[0]]['min'] = $config_var['min'];
916
				else
917
					$context['config_vars'][$config_var[0]]['min'] = 0;
918
919
				if (isset($config_var['max']))
920
					$context['config_vars'][$config_var[0]]['max'] = $config_var['max'];
921
922
				if (isset($config_var['step']))
923
					$context['config_vars'][$config_var[0]]['step'] = $config_var['step'];
924
			}
925
926
			// If this is a select box handle any data.
927
			if (!empty($config_var[4]) && is_array($config_var[4]))
@@ 1052-1065 (lines=14) @@
1049
			);
1050
1051
			// Handle min/max/step if necessary
1052
			if ($config_var[0] == 'int' || $config_var[0] == 'float')
1053
			{
1054
				// Default to a min of 0 if one isn't set
1055
				if (isset($config_var['min']))
1056
					$context['config_vars'][$config_var[1]]['min'] = $config_var['min'];
1057
				else
1058
					$context['config_vars'][$config_var[1]]['min'] = 0;
1059
1060
				if (isset($config_var['max']))
1061
					$context['config_vars'][$config_var[1]]['max'] = $config_var['max'];
1062
1063
				if (isset($config_var['step']))
1064
					$context['config_vars'][$config_var[1]]['step'] = $config_var['step'];
1065
			}
1066
1067
			// If this is a select box handle any data.
1068
			if (!empty($config_var[2]) && is_array($config_var[2]))