Fix reCAPTCHA to get 100% with the Coder module review.
...
recaptcha.module
-
Line 20: string concatenation should be formatted without a space separating the operators (dot .) and a quote
$output .= '<p>' .
-
Line 22: string concatenation should be formatted without a space separating the operators (dot .) and a quote
'</p><h3>' .
-
Line 24: string concatenation should be formatted without a space separating the operators (dot .) and a quote
'</h3><p>' .
-
Line 118: Functions should be called with no spaces between the function name
function recaptcha_admin_settings_validate ($form_id, $form_values) { -
Line 131: Control statements should have one space between the control keyword and opening parenthesis
switch($op) { -
Line 138: Control statements should have one space between the control keyword and opening parenthesis
if($captcha_type == "reCAPTCHA") { -
Line 140: global variables should start with a single underscore followed by the module and another underscore
global $jsadded;
-
Line 157: string concatenation should be formatted without a space separating the operators (dot .) and a quote
drupal_add_css(drupal_get_path('module', 'recaptcha') . '/recaptcha.css'); -
Line 168: Functions should be called with no spaces between the function name
$result['form']['captcha_challenge'] = array (
-
Line 186: else statements should begin on a new line
} else {
Comments
Comment #1
kthagen commentedCleanup complete for 4.7
Comment #2
robloachI'll hack at it for the 5.x branch once the rest of the issues are cleared up.
Comment #3
robloachThere we go...
Comment #4
(not verified) commented