Code Duplication    Length = 5-5 lines in 2 locations

catalog/admin/includes/classes/phplot.php 2 locations

@@ 2157-2161 (lines=5) @@
2154
		//Data comes in as $data[]=("title",x,y,...);
2155
		//Set first and last datapoints of area
2156
		$i = 0;
2157
		while ($i < $this->records_per_group) {
2158
			$posarr[$i][] =  $this->xtr($this->min_x);	//x initial
2159
			$posarr[$i][] =  $this->ytr($this->x_axis_position); 	//y initial
2160
			$i++;
2161
		}
2162
2163
		foreach ($this->data_values as $j => $row) {
2164
			$color_index = 0;
@@ 2207-2211 (lines=5) @@
2204
2205
		//Set first and last datapoints of area
2206
		$i = 0;
2207
		while ($i < $this->records_per_group) {
2208
			$posarr[$i][] =  $this->xtr(.5);			//x initial
2209
			$posarr[$i][] =  $this->ytr($this->x_axis_position); 	//y initial
2210
			$i++;
2211
		}
2212
2213
		foreach ($this->data_values as $j => $row) {
2214
			$color_index = 0;