Review assets

This commit is contained in:
David Garcia 2019-01-09 22:28:27 +00:00 committed by David Garcia
parent 88a9e4b1ff
commit de2902aac4

View File

@ -39,9 +39,9 @@ class EmailValidation extends HttpApi
* *
* @return ValidateResponse * @return ValidateResponse
*/ */
public function validate($address, $mailboxVerification = false) public function validate(string $address, $mailboxVerification = false)
{ {
// Validates the mailbox verification. Assert::stringNotEmpty($address);
Assert::boolean($mailboxVerification); Assert::boolean($mailboxVerification);
$params = [ $params = [
@ -80,9 +80,7 @@ class EmailValidation extends HttpApi
*/ */
public function parse($addresses, $syntaxOnly = true) public function parse($addresses, $syntaxOnly = true)
{ {
// Validates the email addresses.
Assert::stringNotEmpty($addresses); Assert::stringNotEmpty($addresses);
Assert::minLength($addresses, 3);
Assert::maxLength($addresses, 8000); Assert::maxLength($addresses, 8000);
// Validates the Syntax Only verification. // Validates the Syntax Only verification.