Code Duplication    Length = 4-4 lines in 2 locations

application/helpers/dx_captcha_helper.php 2 locations

@@ 318-321 (lines=4) @@
315
        if ($show_grid == TRUE) {
316
            // X grid
317
            $grid = rand(20, 25);
318
            for ($x = 0; $x < $img_width; $x += mt_rand($grid - 2, $grid + 2)) {
319
                $current_colour = $grid_color[array_rand($grid_color)];
320
                imagedashedline($im, mt_rand($x - 3, $x + 3), mt_rand(0, 4), mt_rand($x - 3, $x + 3), mt_rand($img_height - 5, $img_height), $current_colour);
321
            }
322
323
            // Y grid
324
            for ($y = 0; $y < $img_height; $y += mt_rand($grid - 2, $grid + 2)) {
@@ 324-327 (lines=4) @@
321
            }
322
323
            // Y grid
324
            for ($y = 0; $y < $img_height; $y += mt_rand($grid - 2, $grid + 2)) {
325
                $current_colour = $grid_color[array_rand($grid_color)];
326
                imageline($im, mt_rand(0, 4), mt_rand($y - 3, $y), mt_rand($img_width - 5, $img_width), mt_rand($y - 3, $y), $current_colour);
327
            }
328
        }
329
330
        // -----------------------------------