Remove unnecessary parentheses

This commit is contained in:
apetitpa 2017-03-23 14:51:52 +01:00 committed by Fabien Potencier
parent 9753a2773e
commit 6071ff6c8f
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class EmailValidator extends ConstraintValidator
*/
private function checkMX($host)
{
return ('' !== $host) && checkdnsrr($host, 'MX');
return '' !== $host && checkdnsrr($host, 'MX');
}
/**
@ -150,6 +150,6 @@ class EmailValidator extends ConstraintValidator
*/
private function checkHost($host)
{
return ('' !== $host) && ($this->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA')));
return '' !== $host && ($this->checkMX($host) || (checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA')));
}
}