Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2192-2198 (lines=7) @@
2189
2190
		$color_index=0;
2191
2192
		foreach ($posarr as $row) {
2193
			if ($color_index >= count($this->ndx_data_color)) $color_index=0;
2194
			$barcol = $this->ndx_data_color[$color_index];
2195
//echo "$row[0],$row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10],$row[11],$row[12], $barcol<br />";
2196
			ImageFilledPolygon($this->img, $row, (count($row)) / 2, $barcol);
2197
			$color_index++;
2198
		}
2199
//exit;
2200
2201
	}
@@ 2240-2246 (lines=7) @@
2237
2238
		$color_index=0;
2239
2240
		foreach ($posarr as $row) {
2241
			if ($color_index >= count($this->ndx_data_color)) $color_index=0;
2242
			$barcol = $this->ndx_data_color[$color_index];
2243
//echo "$row[0],$row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10],$row[11],$row[12], $barcol<br />";
2244
			ImageFilledPolygon($this->img, $row, (count($row)) / 2, $barcol);
2245
			$color_index++;
2246
		}
2247
2248
	}
2249