Code Duplication    Length = 8-8 lines in 2 locations

Field/Integer.php 2 locations

@@ 64-71 (lines=8) @@
61
			// A position step will never reach the last number.
62
			return $options;
63
		}
64
		elseif ($step < 0)
65
		{
66
			// Build the options array backwards.
67
			for ($i = $first; $i >= $last; $i += $step)
68
			{
69
				$options[] = HtmlSelect::option($i);
70
			}
71
		}
72
		else
73
		{
74
			// Build the options array.
@@ 72-79 (lines=8) @@
69
				$options[] = HtmlSelect::option($i);
70
			}
71
		}
72
		else
73
		{
74
			// Build the options array.
75
			for ($i = $first; $i <= $last; $i += $step)
76
			{
77
				$options[] = HtmlSelect::option($i);
78
			}
79
		}
80
81
		// Merge any additional options in the XML definition.
82
		$options = array_merge(parent::getOptions(), $options);