mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 04:26:02 +03:00
Review assets
This commit is contained in:
parent
88a9e4b1ff
commit
de2902aac4
@ -39,9 +39,9 @@ class EmailValidation extends HttpApi
|
||||
*
|
||||
* @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);
|
||||
|
||||
$params = [
|
||||
@ -80,9 +80,7 @@ class EmailValidation extends HttpApi
|
||||
*/
|
||||
public function parse($addresses, $syntaxOnly = true)
|
||||
{
|
||||
// Validates the email addresses.
|
||||
Assert::stringNotEmpty($addresses);
|
||||
Assert::minLength($addresses, 3);
|
||||
Assert::maxLength($addresses, 8000);
|
||||
|
||||
// Validates the Syntax Only verification.
|
||||
|
Loading…
Reference in New Issue
Block a user