Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
captcha
Commits
23a68064
Commit
23a68064
authored
Feb 20, 2020
by
Hardik_Patel_12
Committed by
Fabiano Sant'Ana
Feb 20, 2020
Browse files
Issue #3112425 by Hardik_Patel_12, kishor_kolekar, wundo: Remove unused variables
parent
548a8bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
image_captcha/src/Response/CaptchaImageResponse.php
image_captcha/src/Response/CaptchaImageResponse.php
+0
-4
No files found.
image_captcha/src/Response/CaptchaImageResponse.php
View file @
23a68064
...
...
@@ -158,9 +158,6 @@ class CaptchaImageResponse extends Response {
}
imagefilledrectangle
(
$image
,
0
,
0
,
$width
,
$height
,
$background_color
);
// Do we need to draw in RTL mode?
global
$language
;
$result
=
$this
->
printString
(
$image
,
$width
,
$height
,
$fonts
,
$font_size
,
$code
);
if
(
!
$result
)
{
return
FALSE
;
...
...
@@ -342,7 +339,6 @@ class CaptchaImageResponse extends Response {
$character_quantity
=
count
(
$characters
);
$foreground_rgb
=
$this
->
hexToRgb
(
$this
->
config
->
get
(
'image_captcha_foreground_color'
));
$background_rgb
=
$this
->
hexToRgb
(
$this
->
config
->
get
(
'image_captcha_background_color'
));
$foreground_color
=
imagecolorallocate
(
$image
,
$foreground_rgb
[
0
],
$foreground_rgb
[
1
],
$foreground_rgb
[
2
]);
// Precalculate the value ranges for color randomness.
$foreground_randomness
=
$this
->
config
->
get
(
'image_captcha_foreground_color_randomness'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment