Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Use camelCase for local variable as per coding conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Linklater committed Aug 24, 2015
1 parent 3376ca3 commit 67b7f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/RecaptchaField.php
Expand Up @@ -103,14 +103,14 @@ public function Field($properties=array()) {
if(!empty($previousError)) $jsURL .= "&error={$previousError}";

// turn options array into data attributes
$option_string = '';
$optionString = '';
foreach($this->options as $option => $value) {
$option_string .= ' data-' . htmlentities($option) . '="' . htmlentities($value) . '"';
$optionString .= ' data-' . htmlentities($option) . '="' . htmlentities($value) . '"';
}

Requirements::javascript($jsURL);
$html .= '<div class="g-recaptcha" id="' . $this->getName() . '"
data-sitekey="' . self::$public_api_key . '"' . $option_string . '></div>';
data-sitekey="' . self::$public_api_key . '"' . $optionString . '></div>';

// noscript fallback
$html .= <<<EOF
Expand Down

0 comments on commit 67b7f98

Please sign in to comment.