Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAlexandru committed Aug 1, 2018
1 parent 8c3982b commit 44c0d73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Network/Email/CakeEmail.php
Expand Up @@ -624,10 +624,10 @@ protected function _validateEmail($email, $context) {
} elseif (preg_match($this->_emailPattern, $email)) {
return;
}
if ($email == '') {
throw new SocketException(__d('cake_dev', 'The email set for "%s" is empty.', $context));
if ($email == '') {
throw new SocketException(__d('cake_dev', 'The email set for "%s" is empty.', $context));
}
throw new SocketException(__d('cake_dev', 'Invalid email set for "%s". You passed "%s".', $context, $email));
throw new SocketException(__d('cake_dev', 'Invalid email set for "%s". You passed "%s".', $context, $email));
}

/**
Expand Down

0 comments on commit 44c0d73

Please sign in to comment.