Skip to content

Commit

Permalink
Small fix for else if in javascript to circumvent php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Jul 27, 2012
1 parent 614e150 commit 01b2c43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Zend/Form/View/Helper/Captcha/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ protected function renderHiddenInput($challengeName, $challengeId, $responseName
*/
protected function renderJsEvents($challengeId, $responseId)
{
$elseif = 'else if'; // php-cs-fixer bug
$js =<<<EOJ
<script type="text/javascript" language="JavaScript">
function windowOnLoad(fn)
Expand All @@ -126,7 +127,7 @@ function zendBindEvent(el, eventName, eventHandler)
{
if (el.addEventListener){
el.addEventListener(eventName, eventHandler, false);
} elseif (el.attachEvent){
} $elseif (el.attachEvent){
el.attachEvent('on'+eventName, eventHandler);
}
}
Expand Down

0 comments on commit 01b2c43

Please sign in to comment.