mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[task/code-sniffer] Replace spaces with tabs.
PHPBB3-11980
This commit is contained in:
@@ -26,7 +26,6 @@ class captcha
|
||||
var $width = 360;
|
||||
var $height = 96;
|
||||
|
||||
|
||||
/**
|
||||
* Create the image containing $code with a seed of $seed
|
||||
*/
|
||||
@@ -69,7 +68,6 @@ class captcha
|
||||
$bounding_boxes[$i] = $box;
|
||||
}
|
||||
|
||||
|
||||
// Redistribute leftover x-space
|
||||
$offset = array();
|
||||
for ($i = 0; $i < $code_len; ++$i)
|
||||
@@ -99,12 +97,12 @@ class captcha
|
||||
imagedashedline($img, mt_rand($x -3, $x + 3), mt_rand(0, 4), mt_rand($x -3, $x + 3), mt_rand($this->height - 5, $this->height), $current_colour);
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['captcha_gd_wave'] && ($config['captcha_gd_y_grid'] || $config['captcha_gd_y_grid']))
|
||||
{
|
||||
$this->wave($img);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($config['captcha_gd_3d_noise'])
|
||||
{
|
||||
$xoffset = mt_rand(0,9);
|
||||
@@ -122,11 +120,12 @@ class captcha
|
||||
$dimm = $bounding_boxes[$i];
|
||||
$xoffset += ($offset[$i] - $dimm[0]);
|
||||
$yoffset = mt_rand(-$dimm[1], $this->height - $dimm[3]);
|
||||
|
||||
|
||||
$noise[$i]->drawchar($sizes[$i], $xoffset, $yoffset, $img, $colour->get_resource('background'), $scheme);
|
||||
$xoffset += $dimm[2];
|
||||
}
|
||||
}
|
||||
|
||||
$xoffset = 5;
|
||||
for ($i = 0; $i < $code_len; ++$i)
|
||||
{
|
||||
@@ -137,14 +136,17 @@ class captcha
|
||||
$characters[$i]->drawchar($sizes[$i], $xoffset, $yoffset, $img, $colour->get_resource('background'), $scheme);
|
||||
$xoffset += $dimm[2];
|
||||
}
|
||||
|
||||
if ($config['captcha_gd_wave'])
|
||||
{
|
||||
$this->wave($img);
|
||||
}
|
||||
|
||||
if ($config['captcha_gd_foreground_noise'])
|
||||
{
|
||||
$this->noise_line($img, 0, 0, $this->width, $this->height, $colour->get_resource('background'), $scheme, $bg_colours);
|
||||
}
|
||||
|
||||
// Send image
|
||||
header('Content-Type: image/png');
|
||||
header('Cache-control: no-cache, no-store');
|
||||
@@ -233,7 +235,6 @@ class captcha
|
||||
imagesetthickness($img, 1);
|
||||
}
|
||||
|
||||
|
||||
function captcha_noise_bg_bitmaps()
|
||||
{
|
||||
return array(
|
||||
@@ -292,7 +293,7 @@ class captcha
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return bitmaps
|
||||
*/
|
||||
|
@@ -86,7 +86,7 @@ class captcha
|
||||
|
||||
$fontcolors[0] = imagecolorallocate($img, mt_rand(0, 120), mt_rand(0, 120), mt_rand(0, 120));
|
||||
|
||||
$colors = array();
|
||||
$colors = array();
|
||||
|
||||
$minr = mt_rand(20, 30);
|
||||
$ming = mt_rand(20, 30);
|
||||
|
Reference in New Issue
Block a user