Fix reCAPTCHA to get 100% with the Coder module review.

...

recaptcha.module

  • Only local images are allowed.Line 20: string concatenation should be formatted without a space separating the operators (dot .) and a quote
          $output .= '<p>' .
    
  • Only local images are allowed.Line 22: string concatenation should be formatted without a space separating the operators (dot .) and a quote
            '</p><h3>' .
    
  • Only local images are allowed.Line 24: string concatenation should be formatted without a space separating the operators (dot .) and a quote
            '</h3><p>' .
    
    
  • Only local images are allowed.Line 118: Functions should be called with no spaces between the function name
    function recaptcha_admin_settings_validate ($form_id, $form_values) {
    
  • Only local images are allowed.Line 131: Control statements should have one space between the control keyword and opening parenthesis
      switch($op) {
    
  • Only local images are allowed.Line 138: Control statements should have one space between the control keyword and opening parenthesis
          if($captcha_type == "reCAPTCHA") {
    
  • Only local images are allowed.Line 140: global variables should start with a single underscore followed by the module and another underscore
            global $jsadded;
    
  • Only local images are allowed.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');
    
  • Only local images are allowed.Line 168: Functions should be called with no spaces between the function name
            $result['form']['captcha_challenge'] = array (
    
    
  • Only local images are allowed.Line 186: else statements should begin on a new line
          } else {
    

Comments

kthagen’s picture

Cleanup complete for 4.7

robloach’s picture

Assigned: Unassigned » robloach
Priority: Normal » Minor

I'll hack at it for the 5.x branch once the rest of the issues are cleared up.

robloach’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)