Code Duplication    Length = 14-14 lines in 2 locations

Sources/ManageServer.php 2 locations

@@ 721-734 (lines=14) @@
718
			);
719
720
			// Handle min/max/step if necessary
721
			if ($config_var[3] == 'int' || $config_var[3] == 'float')
722
			{
723
				// Default to a min of 0 if one isn't set
724
				if (isset($config_var['min']))
725
					$context['config_vars'][$config_var[0]]['min'] = $config_var['min'];
726
				else
727
					$context['config_vars'][$config_var[0]]['min'] = 0;
728
729
				if (isset($config_var['max']))
730
					$context['config_vars'][$config_var[0]]['max'] = $config_var['max'];
731
732
				if (isset($config_var['step']))
733
					$context['config_vars'][$config_var[0]]['step'] = $config_var['step'];
734
			}
735
736
			// If this is a select box handle any data.
737
			if (!empty($config_var[4]) && is_array($config_var[4]))
@@ 862-875 (lines=14) @@
859
			);
860
861
			// Handle min/max/step if necessary
862
			if ($config_var[0] == 'int' || $config_var[0] == 'float')
863
			{
864
				// Default to a min of 0 if one isn't set
865
				if (isset($config_var['min']))
866
					$context['config_vars'][$config_var[1]]['min'] = $config_var['min'];
867
				else
868
					$context['config_vars'][$config_var[1]]['min'] = 0;
869
870
				if (isset($config_var['max']))
871
					$context['config_vars'][$config_var[1]]['max'] = $config_var['max'];
872
873
				if (isset($config_var['step']))
874
					$context['config_vars'][$config_var[1]]['step'] = $config_var['step'];
875
			}
876
877
			// If this is a select box handle any data.
878
			if (!empty($config_var[2]) && is_array($config_var[2]))