Optimize formatting for Symfony coding standards

This commit is contained in:
Jeremy Livingston
2012-12-03 14:55:11 -05:00
parent 9fc82c8453
commit fef3e306fd
2 changed files with 32 additions and 34 deletions

View File

@ -57,8 +57,7 @@ class CaptchaValidator
$code = $form->getData();
$expectedCode = $this->getExpectedCode();
if (!($code && is_string($code)
&& ($this->compare($code, $expectedCode) || $this->compare($code, $this->bypassCode)))) {
if (!($code && is_string($code) && ($this->compare($code, $expectedCode) || $this->compare($code, $this->bypassCode)))) {
$form->addError(new FormError($this->invalidMessage));
}