mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 20:46:03 +03:00
Review assets
This commit is contained in:
parent
88a9e4b1ff
commit
de2902aac4
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user