Code Duplication    Length = 6-6 lines in 2 locations

lib/modules/mod_captcha/hn_captcha.class.php 2 locations

@@ 590-595 (lines=6) @@
587
			{
588
				// generate grid
589
				if($this->debug) echo "\n<br>-Captcha-Debug: Fill background with x-gridlines: (".(int)($this->lx / (int)($this->minsize / 1.5)).")";
590
				for($i=0; $i < $this->lx; $i += (int)($this->minsize / 1.5))
591
				{
592
					$this->random_color(160, 224);
593
					$color	= $func2($image, $this->r, $this->g, $this->b);
594
					@imageline($image, $i, 0, $i, $this->ly, $color);
595
				}
596
				if($this->debug) echo "\n<br>-Captcha-Debug: Fill background with y-gridlines: (".(int)($this->ly / (int)(($this->minsize / 1.8))).")";
597
				for($i=0 ; $i < $this->ly; $i += (int)($this->minsize / 1.8))
598
				{
@@ 597-602 (lines=6) @@
594
					@imageline($image, $i, 0, $i, $this->ly, $color);
595
				}
596
				if($this->debug) echo "\n<br>-Captcha-Debug: Fill background with y-gridlines: (".(int)($this->ly / (int)(($this->minsize / 1.8))).")";
597
				for($i=0 ; $i < $this->ly; $i += (int)($this->minsize / 1.8))
598
				{
599
					$this->random_color(160, 224);
600
					$color	= $func2($image, $this->r, $this->g, $this->b);
601
					@imageline($image, 0, $i, $this->lx, $i, $color);
602
				}
603
			}
604
605
			// generate Text